lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gora Mohanty <>
Subject Replacing text fields with numeric fields for speed
Date Fri, 23 Jul 2010 09:14:32 GMT

  One of the things that we were thinking of doing in order to
speed up results from Solr search is to convert fixed-text fields
(such as values from a drop-down) into numeric fields. The thinking
behind this was that searching through numeric values would be
faster than searching through text. However, I now feel that we
were barking up the wrong tree, as Lucene is probably not doing a
text search per se.

  From some experiments, I see only a small difference between a
text search on a field, and a numeric search on the corresponding
numeric field. This difference can probably be attributed to the
additional processing on the text field. Could someone clarify on
whether one can expect a difference in speed between searching
through a fixed-text field, and its numeric equivalent?

  I am aware of the benefit of numeric fields for range queries.


View raw message