solr - SolrJ Query -


Hello everyone,

I have to ask many values ​​against an index (like IN (id1 , Id2, id3) SQL query) In other words, I want to retrieve the docs which matches the set of values ​​to the values.

As Solarj api, I hope somebody can help me.

You can do something like this:

  SolrQuery solrQuery = new SolrQuery (). SetQuery ("myField: id1 or myField: id2 or myField: id3"); Query response rsp = server.query (solrQuery);  

Or:

  Solraqui Soloquenu = New Solarquiry (). Setchize ("MyFile: (ID1 or ID2 or ID3)"); Query response rsp = server.query (solrQuery);  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -