lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: how to create a range query with string parameters
Date Tue, 17 May 2011 17:00:27 GMT
Could it be as simple as a missing colon after article in +code:CCOM
+article[l123-12 TO l123-14]?

If not, double check analyzers, see what Luke shows as indexed terms
for that field, work through the FAQ info posted earlier.  And play
with quotes - sometimes you show your article values quoted, sometimes
not.


--
Ian.


On Tue, May 17, 2011 at 5:01 PM, G.Long <jdevgl@gmail.com> wrote:
> I added a standard analyzer and a Query Parser to parse each boolean clause
> of my query and i got some results :)
> But now there are some strange behaviors.
>
> the following queries :
>
> +code:CCOM +article:"l123-12"
> +code:CCOM +article:"l123-13"
> +code:CCOM +article:"l123-14"
>
> return one result.
>
> However, the following query :
>
> +code:CCOM +article[l123-12 TO l123-14]
>
> return nothing =(
>
> With other parameters, the range query works almost fine but some results
> are missing.
> What could be the problem? Could it have something to do with the way the
> documents are indexed?
> (the use of Field.Index.ANALYZED for example)
>
> Thank you for your help :)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message