im trying to use elasticsearch to search through products. If product is a
car for instance, it will have some field like "color", "brand", "model",
"km", ...
If it is clothes, it will only have "color", "size", ...
I would like to index all this info in elastic to be able then to search
cars with km between aaa km and bbb km, and / or xxxx model, same for
clothes or any other products.
how can I create such field(s) in elasticsearch ? I want all products to be
in same index, so user can search through all products, but also if user
search a type a product, then he should be able to specify some more
details according to this kind of product.
I was thinking about array field, but does that mean that all products will
have all fields corresponding to all type of products even if some fields
are not relevant with some products (ie clothes will have km field ??) ? Or
is it possible on indexing to put just info needed corresponding to each
product ?
simply create different types for each kind of product in one index. Still
your application will need to fire off different kind of searches depending
on the product you are searching for.
Also check out this presentation from Clinton to get up and running
quickly, along with the reference documentation.
im trying to use elasticsearch to search through products. If product is a
car for instance, it will have some field like "color", "brand", "model",
"km", ...
If it is clothes, it will only have "color", "size", ...
I would like to index all this info in elastic to be able then to search
cars with km between aaa km and bbb km, and / or xxxx model, same for
clothes or any other products.
how can I create such field(s) in elasticsearch ? I want all products to
be in same index, so user can search through all products, but also if user
search a type a product, then he should be able to specify some more
details according to this kind of product.
I was thinking about array field, but does that mean that all products
will have all fields corresponding to all type of products even if some
fields are not relevant with some products (ie clothes will have km field
??) ? Or is it possible on indexing to put just info needed corresponding
to each product ?
thanks for answer. It seems to be what I need. But Is there a way to
optimize or to make kind of inheritance, as all products have some common
fields, like price, category, date, images, ...
On Monday, June 24, 2013 10:22:01 PM UTC+2, Alexander Reelsen wrote:
Hey,
simply create different types for each kind of product in one index. Still
your application will need to fire off different kind of searches depending
on the product you are searching for.
Also check out this presentation from Clinton to get up and running
quickly, along with the reference documentation. Down and dirty with Elasticsearch | PPT
im trying to use elasticsearch to search through products. If product is
a car for instance, it will have some field like "color", "brand", "model",
"km", ...
If it is clothes, it will only have "color", "size", ...
I would like to index all this info in elastic to be able then to search
cars with km between aaa km and bbb km, and / or xxxx model, same for
clothes or any other products.
how can I create such field(s) in elasticsearch ? I want all products to
be in same index, so user can search through all products, but also if user
search a type a product, then he should be able to specify some more
details according to this kind of product.
I was thinking about array field, but does that mean that all products
will have all fields corresponding to all type of products even if some
fields are not relevant with some products (ie clothes will have km field
??) ? Or is it possible on indexing to put just info needed corresponding
to each product ?
thanks
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
you can configure a default settings for all types created in your search
instance (I am however not a big fan of it, but maybe it helps in your
specific usecase). See
thanks for answer. It seems to be what I need. But Is there a way to
optimize or to make kind of inheritance, as all products have some common
fields, like price, category, date, images, ...
On Monday, June 24, 2013 10:22:01 PM UTC+2, Alexander Reelsen wrote:
Hey,
simply create different types for each kind of product in one index.
Still your application will need to fire off different kind of searches
depending on the product you are searching for.
im trying to use elasticsearch to search through products. If product is
a car for instance, it will have some field like "color", "brand", "model",
"km", ...
If it is clothes, it will only have "color", "size", ...
I would like to index all this info in elastic to be able then to search
cars with km between aaa km and bbb km, and / or xxxx model, same for
clothes or any other products.
how can I create such field(s) in elasticsearch ? I want all products to
be in same index, so user can search through all products, but also if user
search a type a product, then he should be able to specify some more
details according to this kind of product.
I was thinking about array field, but does that mean that all products
will have all fields corresponding to all type of products even if some
fields are not relevant with some products (ie clothes will have km field
??) ? Or is it possible on indexing to put just info needed corresponding
to each product ?
thanks
--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@**googlegroups.com.
thanks. that is exacty what I was searching.
On some other forum, someone told me it is also possible to do this by
creating different types. Do u know if one solution is better (quicklier,
easyer, ...) that the other ?
On Wednesday, June 26, 2013 8:33:47 AM UTC+2, Alexander Reelsen wrote:
thanks for answer. It seems to be what I need. But Is there a way to
optimize or to make kind of inheritance, as all products have some common
fields, like price, category, date, images, ...
On Monday, June 24, 2013 10:22:01 PM UTC+2, Alexander Reelsen wrote:
Hey,
simply create different types for each kind of product in one index.
Still your application will need to fire off different kind of searches
depending on the product you are searching for.
im trying to use elasticsearch to search through products. If product
is a car for instance, it will have some field like "color", "brand",
"model", "km", ...
If it is clothes, it will only have "color", "size", ...
I would like to index all this info in elastic to be able then to
search cars with km between aaa km and bbb km, and / or xxxx model, same
for clothes or any other products.
how can I create such field(s) in elasticsearch ? I want all products
to be in same index, so user can search through all products, but also if
user search a type a product, then he should be able to specify some more
details according to this kind of product.
I was thinking about array field, but does that mean that all products
will have all fields corresponding to all type of products even if some
fields are not relevant with some products (ie clothes will have km field
??) ? Or is it possible on indexing to put just info needed corresponding
to each product ?
thanks
--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@**googlegroups.com.
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
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.