Re: Matching a string across multiple fields
Alex Thurlow wrote: So on with the questions. I'm indexing music, and I have artist and title fields. It works great if I just search for the artist or just for the title, but if I search for a string of both, that artist, title combination does not come up first. For example, I have: artist: Whitney Houston title: Saving All My Love For You artist: Whitney Houston title: If I Told You That artist: Whitney Houston title: Exhale If I search for "Whitney Houston Exhale", I would expect that song to come up first, but it doesn't. Is there a special kind of matching or field setup I need to do for that? Sounds like you need to copy those 2 fields into one and then just search that one field. Also checkout the min-should-match settings if you are using the dismax handler
Re: Random Field
What would be more useful would be randomizing closely related hits. IE hits within 5% of each other Sent from my iPhone On May 1, 2010, at 7:37 AM, Yonik Seeley wrote: On Sat, May 1, 2010 at 10:23 AM, Blargy wrote: Can someone explain a useful case for the RandomSortField? People sometimes have requirements to show different results to everyone (essentially randomly shuffling matches per person). -Yonik Apache Lucene Eurocon 2010 18-21 May 2010 | Prague indexed="true" />
Re: Random Field
Example use case: We have a bunch of items sold by multiple sellers. I would rather show closely related items distributed by seller rather than clumps of items by the same seller. This will be more of a "fair" scoring for sellers. The scores should be within a certain percentage of each other to still return relevant results. Would you mine providing an example of random sort in a boost function/ function query. Thanks Sent from my iPhone On May 1, 2010, at 9:37 AM, Yonik Seeley wrote: On Sat, May 1, 2010 at 12:32 PM, Static Void > wrote: What would be more useful would be randomizing closely related hits. IE hits within 5% of each other This is not the use case I've encountered multiple times in the past, but it should also be doable by using the random field in a function query. -Yonik Apache Lucene Eurocon 2010 18-21 May 2010 | Prague