java - Date Format to index in lucene -
i using lucene search date ranges. want know how should take date index it. when want index in resolution ie. year,month,day,hour,minute,second,millisecond
the data you're indexing provides time information millisecond? sort of data can think of provides sort of precise information list of benchmarking results or maybe you're searching through best times of auto race or something.
at point don't think should use lucene if you're looking search date ranges. relational database performs quite this.
you can still keep lucene full-text search stuff, , use else date ranges (mysql).
here's reference lucene's site:
in query form, fields general text should use query parser. others, such date ranges, keywords, etc. better added directly through query api.
Comments
Post a Comment