I have two indices each storing a specific type "Products" and "Stores."
Some of the attribute names of each type overlap. For instance, both
Products and Stores have a "name" attribute. How can I search across both
indices while giving different boost values to the same attribute? I want
to give Products.name a boost of 1.3 and Stores.name a boost of 1.7. I
don't see a way to do this with the query string query.
If I understand you correctly, let's say you have one or more indexes. Then
you have 2 types named "product" and "store". "product" and "store" both
have the field "name", but you want to boost the product "name" independent
from the store "name". You should be able to do something like this:
That works perfectly, Thanks! I had no idea you could preface the field
paths with the type for boosting like that.
On Monday, February 24, 2014 7:08:31 PM UTC-5, Binh Ly wrote:
If I understand you correctly, let's say you have one or more indexes.
Then you have 2 types named "product" and "store". "product" and "store"
both have the field "name", but you want to boost the product "name"
independent from the store "name". You should be able to do something like
this:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.