lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Problem in lucene query
Date Thu, 10 Sep 2009 14:38:05 GMT
Also, get a copy of Luke and examine your index, that'll tell you what
isactually
in there *and* it will let you see how queries parse under
various analyzers.....

Best
Erick

On Thu, Sep 10, 2009 at 6:47 AM, vibhuti <vibhuti.gupta@thepsi.com> wrote:

> Hello
>
>
>
> I am new to Lucene and facing a problem while performing searches. I am
> using lucene 2.2.0.
>
> My application indexes documents on "keyword" field which contains integer
> values. If the value is negative the query does not return correct results.
>
>
>
> Following is my lucene query:
>
>
>
> (keyword: \-1)
>
>
>
> I also tried:
>
> (keyword: "-1")
>
>
>
>
>
> But none of them returns correct results. It seems that Lucene ignores '-'.
> My purpose is to search documents with index value "-1".
>
>
>
> Any ideas??
>
>
>
> Thanks
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message