Problem:
I have some indexes: Realty, Electronics, Auto ... Each document have title
and description. And I'm use full-text search (with morphology) for all
indexes for title and description.
But, some queries is not relevant for some indexes.
Example:
"washing machine" is good for Electronics and not so good for Realty.
Becouse, too many docs in Realty where "washing machine" can be find in
description: flat for rent with "washing machine" or cottage for sale and
"washing machine" as a gift.
Question:
How I can "pessimize" docs that matched to selected queries (dozens) in
selected indexes? If I search for "washing machine" for all indexes, only
results from Electronics must be in query results. But, for "flat for rent
with washing machine" query must give relevant result.
Your situation sounds like something that would be better off solved on the
client side. If your query is contained in a list of targeted queries, then
you can restrict the query to a specific index.
If the documents were all in the same index, you can play around with
boosting, such as boosting all electronic documentations.
Problem:
I have some indexes: Realty, Electronics, Auto ... Each document have
title and description. And I'm use full-text search (with morphology) for
all indexes for title and description.
But, some queries is not relevant for some indexes.
Example:
"washing machine" is good for Electronics and not so good for Realty.
Becouse, too many docs in Realty where "washing machine" can be find in
description: flat for rent with "washing machine" or cottage for sale and
"washing machine" as a gift.
Question:
How I can "pessimize" docs that matched to selected queries (dozens) in
selected indexes? If I search for "washing machine" for all indexes, only
results from Electronics must be in query results. But, for "flat for rent
with washing machine" query must give relevant result.
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.