I'm having trouble with
query_by_weights.
I have 3 code fields (barcode, SKU, manfacturer_number) and I want to search all 3 equally. But even if I use query_by_weights with equal values, I get results for exact matches of earlier items.
Product 1:
• SKU: 12345
• MFR#: [some string]
• Barcode: [some string]
Product 2:
• SKU: [some string]
• MFR#: 12345
• Barcode: [some string]
In that example if I search for "12345" and have "query_by=sku, mfr#, barcode" and "query_by_weights=100,100,100" I still get back just 1 hit for Product 1. If I make the weights "100,120,100" then I get 1 hit for Product 2.
Based in the documentation, I expected that equal weights would return both items since they're both an exact match. Is there some other nuance I need to account for, or some bug?