I am having the next issue: I want to remove some docs from the results
based in conditions. I think this is the behavior that 'filters' have. The
problem is that couldn't get with the correct solution.
What I did was to add 'sex' to the stopwords file so if someone search
that word, it is discarded. This works fine at search time for that word
because since it is a single token, none results are retrieved. The problem
occurs when someone search something like 'shop', and, in this case, 2
results are retrieved, and one of them is 'Sex Shop Toys', something I
don't want to retrieve.
Should I use some filter specifically? I tried with bool filter, regexp and
not filter but those undesirable results still being brought.
I am having the next issue: I want to remove some docs from the results
based in conditions. I think this is the behavior that 'filters' have. The
problem is that couldn't get with the correct solution.
What I did was to add 'sex' to the stopwords file so if someone search
that word, it is discarded. This works fine at search time for that word
because since it is a single token, none results are retrieved. The problem
occurs when someone search something like 'shop', and, in this case, 2
results are retrieved, and one of them is 'Sex Shop Toys', something I
don't want to retrieve.
Should I use some filter specifically? I tried with bool filter, regexp
and not filter but those undesirable results still being brought.
I am having the next issue: I want to remove some docs from the results
based in conditions. I think this is the behavior that 'filters' have. The
problem is that couldn't get with the correct solution.
What I did was to add 'sex' to the stopwords file so if someone search
that word, it is discarded. This works fine at search time for that word
because since it is a single token, none results are retrieved. The problem
occurs when someone search something like 'shop', and, in this case, 2
results are retrieved, and one of them is 'Sex Shop Toys', something I
don't want to retrieve.
Should I use some filter specifically? I tried with bool filter, regexp
and not filter but those undesirable results still being brought.
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.