Hi Gérard, Concerning the issue with the ":" character you can use the ClientUtils.escapeQueryChars() method to handle special characters that are part of the query syntax.
The complete list of special characters is in the source code. check out the following resources org/apache/solr/client/solrj/util/ClientUtils.java http://lucene.apache.org/java/2_3_2/queryparsersyntax.html#Escaping%20Special%20Characters 2009/9/8 Gérard Dupont <ger.dup...@gmail.com> > Hi all, > > I'm currently facing a little difficulty to index and search on date field. > The indexing is done in the right way (I guess) and I can find valid date > in > the field like "2009-05-01T12:45:32Z". However when I'm searching the user > don't always give an exact date. for instance they give "2008-05-01" to get > all documents related to that day. I can do a trick using wildcard but is > there another way to do it ? Moreover if they give the full date string (or > if I hack the query parser) I can have the full syntax, but then the ":" > annoy me because the Lucene parser does not allow it without quotes. Any > ideas ? > > -- > Gérard Dupont > Information Processing Control and Cognition (IPCC) - EADS DS > http://weblab.forge.ow2.org > > Document & Learning team - LITIS Laboratory > -- "Good Enough" is not good enough. To give anything less than your best is to sacrifice the gift. Quality First. Measure Twice. Cut Once.