On Wed, Apr 28, 2010 at 11:22 AM, Nagelberg, Kallin <knagelb...@globeandmail.com> wrote: > Does anyone have an idea about the performance benefits of searching across > floats compared to strings? I have one multi-valued field that contains about > 3000 distinct IDs across 5 million documents. I am going to be a lot of > queries like q=id:102 OR id:303 OR id:305, etc. Right now it is a String but > I am going to switch to a float as intuitively it ought to be easier to > filter a number than a string.
There won't be any difference in search speed for term queries as you show above. If you don't need to do sorting or range queries on that field, I'd leave it as a String. -Yonik Apache Lucene Eurocon 2010 18-21 May 2010 | Prague