lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: multifield-boolean vs singlefield-enum query performance
Date Thu, 07 Oct 2004 19:03:04 GMT
Tea Yu wrote:
> For the following implementations:
> 1) storing boolean strings in fields X and Y separately
> 2) storing the same info in a field XY as 3 enums: X, Y, B, N meaning only X
> is True, only Y is True, both are True or both are False
> Is there significant performance gain when we substitute "X:T OR Y:T" by
> "XY:B", while significant loss in "X:T" by "XY:X OR XY:B"?  Or are they
> negligible?

As with most performance questions, it's best to try both and measure! 
It depends on the size of your index, the relative frequencies of X and 
Y, etc.


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

View raw message