> I would like to know how we can achieve the *range search*
> for these date
> formats likeĀ [2011-11-02:10 03:37.236088 to
> 2011-12-02:10 03:37.236088]..?
You can use frange query parser plugin.
http://www.lucidimagination.com/blog/2009/07/06/ranges-over-functions-in-solr-14/
Thanks for u reply guys,
As suggest both formats q={!term f=object}2011-11-02:10 03:37.236088 and
2011-11-02\:10\:03\:37.236088 has worked perfectly for search.
I would like to know how we can achieve the *range search* for these date
formats like [2011-11-02:10 03:37.236088 to 2011-12-02:10 03
: if you'd like to make a query like this you need to escape the : so
: something like
or use the "term" QParser, which was created for the explicit purpose of
never needing to worry about escaping terms in your index...
q={!term f=id}2009-11-04:13:51:07.348184
-Hoss
It looks like your query is getting parsed as a field and a value
field: 2009-11-04
value: 13:51:07.34814
if you'd like to make a query like this you need to escape the : so
something like
2009-11-04\:13\:51\:07.348184
See the following link for more information
http://lucene.apache.org/java/2
Thanks for u r reply Erick,
(Here my use case is -MM-DD 13:54:11.414632 needs to be unique key)
when i trying to search the data for
http://localhost:8080/solr/select/?q=2009-11-04:13:51:07.348184
it throws following error,
though i change my schema to textfield i am getting following
I really don't understand what you're trying to convey.
Let's see your schema definition for your
unique key. I really wouldn't imagine that fields
of that form *could* be anything except string. It's
not in the correct format for a Solr date, and it's
certainly not a numeric type.
If that doe