java - Solr query does not return expected results -
my solr server references events, various text fields (event name, description, keywords...) , of course begin date , end date.
when launch following query:
http://xxxxxxxxxxx/viparis-solr-server/150/spell?q=foire&wt=json
i 28 events, of them containing word "foire" in 1 of indexed text fields.
but if lauch following query:
http://xxxxxxxxxxx/viparis-solr-server/150/spell?q=foire%20%2bdatefin:[now%20to%20*]&wt=json
i 100 events ("datefin" means "enddate" in french), of them end date today or after today, not of them containing word "foire" in 1 of indexed text field.
how can manage combine 2 criteria, in order events containing word "foire" , end date after today?
the default query operator solr or. can 1 of following , behavior expecting:
- add
&q.op=and
request - place
+
in front of search terms tell solr include them both. - use findate filter query.
you can more details solrquerysyntax page.
Comments
Post a Comment