lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adriano Crestani <adrianocrest...@gmail.com>
Subject Re: Need help About Lucene Query
Date Sun, 15 Apr 2012 07:55:20 GMT
Hi Yogesh,

I bet you are indexing A as an analyzed field and its values are getting
tokenized at each capital letter it finds. Try to index field A using
Field.Index.NOT_ANALYZED.

On Sun, Apr 15, 2012 at 3:44 AM, Yogesh patel
<yogeshpateldaiict@gmail.com>wrote:

> Hi,
>
> I have read apache lucene tutorial and implemented in our project.But I
> need help about my lucene question.
>
> I have one Index which has two fields. A and B
> Some values are like below
> A          B
> _______________
>
> AC       10
> AC       20
> ACC    30
> ACC    40
> ACP    70
>
> I need lucene query to get results for only AC ..
> I fired query like 'A:AC' it gives me result all start with AC
> But i need exact match of query.
> Please help me out
>
>
> Awaiting for your positive reply.
> Thanks
>
>
> --
> Yogesh Patel
>

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