lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: query across fields?
Date Mon, 10 Oct 2005 20:44:04 GMT
Marc Hadfield wrote:
> I would prefer not to mix the full text and "types" in the same field as 
> it would make the term positions inconsistent which i depend on for 
> other queries.

Why not store them in the same field using positionIncrement=0 for the 
types?  Then they won't change positions of non-type tokens.  You should 
distinguish the types syntactically, e.g., prefix them with a space or 
other character that does not occur within words.  That way queries on 
this field for the term "name" won't match a type token.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message