A blog about ColdFusion, Bipolar/Cyclothymia, Sleep apnea, theatre, film scores and Life in General (tm)
Monday, June 27, 2011
Lucene search sorting
Just a quick note. I'm using Lucene 2.9.4 with ColdFusion 8 to index products on www.ecch.com. I was attempting to sort by the Title of the product. However, for some reason I was getting incorrectly sorted short-titled products appearing at the top of my (correctly) sorted results. I found that this was due to setting my minimum field length for Titles to 5... So anything less than that was not indexed by title. However, if the Field is not populated for a record... guess what? That's right, it assumes that the title is actually blank, and therefore alphabetically first... Is it a bug? Is it a feature? Gawd knows.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment