I would like to have some help on how to do some things with elastic
search. I have an index with a lot of products that came from some websites
(parsed by a web crawler). I would like to show to my user some filters, so
he can refine his search. I tried to use termFacet on product name, but it
is returning some terms that I don't want to show in the filter. What is
the best approach to do this? Is there a way to query how many know terms I
have in a search result?
Sorry if this doubt is too basic, I don't know where to ask this. Any help
is appreciated!
I would like to have some help on how to do some things with elastic
search. I have an index with a lot of products that came from some websites
(parsed by a web crawler). I would like to show to my user some filters, so
he can refine his search. I tried to use termFacet on product name, but it
is returning some terms that I don't want to show in the filter.
You can exclude terms that you don't want shown. See "Excluding terms"
here:
Although I'm not sure this is what you want :-s
What is
the best approach to do this? Is there a way to query how many know terms I
have in a search result?
I'm not sure if it's just me, but I'm not sure what you're trying to
accomplish. Can you rephrase your questions? Maybe come up with an
example?
Sorry if this doubt is too basic, I don't know where to ask this. Any help
is appreciated!
Thanks for the reply! Let me try to explain with an example:
When user search for car, I would like to show filters like:
mbw (3)
ford (5)
ferrari (1)
The problem is I don't know the car brand, I just have the name and a
description. If I put a termFace on name or description, it can return
other therms that are not brands... like wheels or some other word that is
common for all cars... right?
What I want to do is, from a list of pre defined brands, know the number of
each on the search result...
Is a good aproach ti create a termFacet for each brand, with a filter on it
(to limit to the brand name)?
I would like to have some help on how to do some things with elastic
search. I have an index with a lot of products that came from some
websites
(parsed by a web crawler). I would like to show to my user some filters,
so
he can refine his search. I tried to use termFacet on product name, but
it
is returning some terms that I don't want to show in the filter.
You can exclude terms that you don't want shown. See "Excluding terms"
here:
well, ElasticSearch cannot do the guess work for you so you'll need to
extract the brand name yourself (from your predefined list - its easy).
then feed it into a brand field ...
This is what I want to know... is this the right way to do this? Get the
list of terms and see if it is a predefined brand? I'm afraid I have only
one document for one brand, and this term could not be returned right?
Sorry, I have never worked with lucene or elasticsearch before, things are
not clear to me
well, Elasticsearch cannot do the guess work for you so you'll need to
extract the brand name yourself (from your predefined list - its easy).
then feed it into a brand field ...
Thanks for the reply! Let me try to explain with an example:
When user search for car, I would like to show filters like:
mbw (3)
ford (5)
ferrari (1)
The problem is I don't know the car brand, I just have the name and a
description. If I put a termFace on name or description, it can return
other therms that are not brands... like wheels or some other word that is
common for all cars... right?
What I want to do is, from a list of pre defined brands, know the number of
each on the search result...
Is a good aproach ti create a termFacet for each brand, with a filter on it
(to limit to the brand name)?
I would like to have some help on how to do some things with elastic
search. I have an index with a lot of products that came from some
websites
(parsed by a web crawler). I would like to show to my user some filters,
so
he can refine his search. I tried to use termFacet on product name, but
it
is returning some terms that I don't want to show in the filter.
You can exclude terms that you don't want shown. See "Excluding terms"
here:
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.