Hi,

Your “Product_ID” field is “analyzed”.
You change the Product_ID field to “not_analyzed” for faceting.

If you want to search analyzed Product_ID field, then you should use 
multi_field.

See : 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-multi-field-type.html


------------
Jun Ohtani
[email protected]
blog : http://blog.johtani.info
twitter : http://twitter.com/johtani




2013/12/20 16:00、abhi patel <[email protected]> のメール:

>  I have following data 
> 
> Action : "added"  Product_ID : slr-camera-tripod
> Action : "added"  Product_ID : slr-camera-tripod
> 
> 
> while running term facetson product_ID  it shows count like 
> 
> term : slr   count : 2
> term : camera   count : 2
> term : tripod   count : 2
> 
> which is not appropriate.
> 
> It should show like term : slr-camera-tripod count :2
> 
> How can I achieve the same?
> 
> -- 
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elasticsearch/099ee59d-1528-4941-8813-22939313a1af%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to