Re: How to control ranking based on into which field a hit is found

2020-05-25 Thread Erick Erickson
If you boost it high enough it should, but you’re right it’s not guaranteed. The number is “whatever works”, it’s just a number the score is multiplied by. But another, not costly, but guaranteed to work would be have your app do a real-time get on the ID in parallel with the main query. Real-tim

Re: How to control ranking based on into which field a hit is found

2020-05-25 Thread Steven White
Thanks Erick. OR'ing ID:"MOD2012A"^1000 with the original query will not always guarantee that the record with the matching ID will be the #1 hit on the list, or will it? Also, why did you boost by a factor of 1000? I never figured out what the number means for boosting. I have seen 10, 100

Re: How to control ranking based on into which field a hit is found

2020-05-25 Thread Erick Erickson
Try something like q=whatever OR q=id:whatever^1000 I’d put it in quotes for the id= clause, and do look at what the parsed query looks like when you specify &debug=query. The reason I recommend this is you’ll no doubt try something like q=id:download MOD2012A manual witout quotes and be ver