lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <DCutt...@grandcentral.com>
Subject RE: Querying an exact string match ?
Date Wed, 31 Oct 2001 17:08:59 GMT
This should work.  You should be able to find an un-tokenized field
containing spaces with a TermQuery.  Nothing should ever tokenize the
string.

Can you please supply a simple, self-contained example showing that this
does not work?

Thanks,

Doug

> -----Original Message-----
> From: Winton Davies [mailto:wdavies@overture.com]
> Sent: Wednesday, October 31, 2001 1:03 AM
> To: lucene-user@jakarta.apache.org
> Subject: Querying an exact string match ?
> 
> 
> Hi,
> 
>   I have a field which I need to match exactly -- Ideally it 
> shouldn't 
> even be tokenized, but I can't find a way to do that -- adding a 
> field that is indexed but not tokenized, doesn't seem to work -- or 
> at least a Term Query doesn't work.
> 
>   eg the field is "x y z" -- and I do a phrase query "x y" it should 
> not match -- just "x y z" should match.
>  
> Cheers,
>   Winton
> 
> --
> To unsubscribe, e-mail:   
> <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:lucene-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message