RE: Question about sorting by a field

2012-01-20 Thread federico.wachs
Yes, that works! I had to boost the firstDestination field to have it well sorted. Any ideas why the score might be equally for all the documents returned? Thanks a lot! Federico -- View this message in context: http://lucene.472066.n3.nabble.com/Question-about-sorting-by-a-field-tp3673491p36768

RE: Question about sorting by a field

2012-01-19 Thread Michael Ryan
How about having a single-valued field named "firstDestination" that has the first destination in the list, and then your query could be something like 'destination:"Buenos Aires" firstDestination:"Buenos Aires"'. Docs that match both should have a higher score and thus will be listed first. -M