Which Analyzer did you use for indexing, and which one are you using
for searching?  You have to make sure that neither of them discards
that ";" character.

Use Luke to double-check that fields in your index still have that ";"
character, and then make sure that the Analyzer you are passing to
QueryParser doesn't throw away ";" characters.

Otis


--- juan lu <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I have a field named "bidcode" in my Index,the value is like this:
> 
> Doc1:    ;
> Doc2:    ;a0213;a0245
> Doc3:    ;
> Doc4:    ;
> Doc5:    ;a2148;a0214
> ¡­¡­
> 
> how can I search all the documents that the value of this field is
> ";"?
> 
> I use the  Query like this:
> Query query = QueryParser.parse("bidcode:\";\"", "content",
> analyzer);          
> 
> It find nothing.  Why is that?
> 
> Many thanks for help!           
>                         


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to