Notify users when a new version of your iOS app is available, and prompt them with the App Store link. Siren is a Swift port of the Objective-C 'Harpy' project. Arthur Sabintsev | Lead iOS Developer at The Washington Post | Bio & Portfolio

Solr/Siren - Insert/Index data using sparql

I am using in my application that interacts with . I know how to index data into Solr(/solr/update),but I can't figure out how to index using siren. Does it even support indexing? Also, can we use sparql queries to index data in Solr?

Source: (StackOverflow)

SIREn N-Tuples Results

Is it possible in SIREn to work with N-Tuples values(by names) in the SolrDocument? I want to parse query results without regexp of the response string.

Something like:

SolrDocument.getField("ntriple","name"); // get "Jim Maple" value for '<http:/> predicate

More details:

//N-Tuple from the file

 private final String[] doc1 = 

 { "http:/",

 "<http:/> <http:/> <http:/
  /schema/Person> .\n" + 

  "<http:/> <http:/> \"Jim Maple\" .\n" 

 final SolrInputDocument document1 = new SolrInputDocument();

document1.addField("url", doc1[0]);
document1.addField("ntriple", doc1[1]);

final SolrQuery query2 = new SolrQuery();
query2.set(SirenParams.NQ, "* <name> 'john AND gartner'"); // ntriple query
final QueryResponse response2 = server.query(query2);
for (SolrDocument d : response2.getResults()) {

///?????? want to get 'name' value from the long N-Triple string with ALL values
 d.getField("ntriple","name"); // get "Jim Maple" value


Source: (StackOverflow)

Solr siren, siren.xml

As siren documentation explains, the file located in tomcat/conf/Catalina/localhost must set the path of the war file. I have tried with the absolute path, but I wanted to used a relative path, because it is not only me who will use siren.


<Context docBase="/../../../webapps/siren" debug="0" crossContext="true" >
   <Environment name="siren/home" type="java.lang.String" value="/../../../webapps/siren" override="true" />

But running my tomcat I get this error:

GRAVE: Error running static resources
java.lang.IllegalArgumentException: Document /webapps/siren does not exist or is not a readable directory

How could I set up this configuration??

Thanks in advance

Source: (StackOverflow)

Siren "more like this" query

i am using the newest Siren distribution for Solr to index my data and search it. (

Is there a simple way to search similar documents in my indexed data. Something similar to the MoreLikeThis query of Solr (

My goal is to find documents that have a similar json structure that the one i am interested in.

best, Bernd

Source: (StackOverflow)

What is the way to execute SIREn query on an exact value search?

I am trying to use Siren as a plugin on ElasticSearch for a poc. I want to do searches which would give exact match on the string values. I set the analyzer in elasticsearch.yml file as follows :

siren: analysis: datatype: index_analyzer: not_analyzed.

I tried to set index:not_analyzed in SIREn mapping file as follows :


    "workflow" : {
        "properties" : {
            "_siren_source" : {
                "index" : "not_analyzed",
                "analyzer" : "concise",
                "postings_format" : "Siren10AFor",
                "store" : "no",
                "type" : "string"

        "_siren" : {}

But still I am not getting the exact search result. I am getting the partial search result only.

Please help me out.

Also I have data stored as file path values like 'user/cloudera/myFolder' which I need to search on. Right now when I do a search with a value like that the search fails with parse Errors. Why is it throwing the error?

Source: (StackOverflow)

Ruby Siren jsonquery

My json content stored in a file:

    "vms": [
            "component": "pgdb",
            "count": "1",
            "endpoints": "80:8080,5432:5432"
            "component": "mq",
            "count": "1",
            "endpoints": "80:8080,5672:5672,15672:15672"
            "component": "ucms",
            "count": "1",
            "endpoints": "80:80,8080:8080"
            "component": "wsgw",
            "count": "1",
            "endpoints": "8080:8080,9093:9093"

in irb :

require 'json'
require 'Siren'

json ='c:\\stack1.json')
irb(main):022:0> Siren.query "$.vms..[? @.component == ucms ]", json
=> []

I am trying to draft a query that will search on component name and return the value of endpoints. Any help/pointers will be appreciated.


Source: (StackOverflow)