You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Yogesh Dabhi <yd...@asite.com> on 2011/05/23 13:44:49 UTC
# search in Query
I have some bellow value in lucene index field
1#abcd
2#test wer
3# testing rty
I wright the query like bellow
+fieldname:1#
After query parser I see query string become
+fieldname:1
is there a way to search given string
Thanks & Regards
Yogesh
Re: # search in Query
Posted by Ian Lea <ia...@gmail.com>.
Are you sure that it isn't working? If you use the same analyzer at
both indexing and query time you should end up with consistent
results.
Read up on exactly what your analyzer is doing by looking at the javadocs.
Google will find you lots of info on analysis, or get hold of a copy
of Lucene In Action 2nd edition to learn all about lucene. And use
Luke to see what is being indexed.
--
Ian.
On Mon, May 23, 2011 at 12:44 PM, Yogesh Dabhi <yd...@asite.com> wrote:
>
>
> I have some bellow value in lucene index field
>
>
>
> 1#abcd
>
> 2#test wer
>
> 3# testing rty
>
>
>
> I wright the query like bellow
>
>
>
> +fieldname:1#
>
>
>
> After query parser I see query string become
>
> +fieldname:1
>
>
>
> is there a way to search given string
>
>
>
>
> Thanks & Regards
>
> Yogesh
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org