Last active
November 9, 2015 07:34
-
-
Save algotrader-dotcom/33e8f8fdb6942c20f81a to your computer and use it in GitHub Desktop.
Apache Solr: Filter query in solr by date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| If you want to get last week publications you can do somehting like: | |
| &fq=published_date:[NOW-7DAY/DAY TO NOW] | |
| But if you want a concrete date you must do it in the SOLR date format: | |
| &fq=published_date:[2013-07-17T00:00:00Z TO NOW] | |
| I hope that helps | |
| http://server-ip:8984/solr/kiemviecinfo/select?q=label:nhan vien kinh doanh&fq=ds_created:[NOW-3DAY/DAY TO NOW]&wt=xml&indent=true&facet=true&facet.field=sm_vid_Job_Type |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment