1

I am using taxonomy terms to classify my content, and the Search API and Facets modules for searching.

I have some nodes that are tagged with "Asian Cuisine" term; after indexing the content, "Asian Cuisine" is handled as two separated words.

enter image description here

Is there a way to avoid it happens?

4
  • Can you post a screenshot of your search index field settings? I've honestly never seen that happen, and I used Search API quite a bit. Feb 17, 2014 at 17:17
  • thanks @KyleTaylored . here are the links . dropbox.com/s/cbq0egjbsk5gaaf/pic1.jpg dropbox.com/s/xxm3lfhvyfyyh2f/pic2.jpg
    – brainHax
    Feb 18, 2014 at 8:13
  • 1
    Did you apply the "tokenizer" filter to the field?
    – arrubiu
    Feb 18, 2014 at 9:34
  • @arrubiu, thanks for the tip. I turned it on at my taxonomy field and it worked. but also i changed the setting of my Taxonomy field to "String" instead of "FullText". So some of it worked.
    – brainHax
    Feb 18, 2014 at 9:54

1 Answer 1

2

Based on your screenshots, consider using the "Taxonomy Term" type for the field indexes. This should remedy your issue.

By using Full Text, you're breaking up the taxonomy term names into searchable words. Use either the default taxonomy term value, or try using the "All Parent Terms" field.

Normal taxonomy term field index.

4
  • thanks @KyleTaylored. but does this has to do any thing with the below screen . dropbox.com/s/87npj9k7y558ndy/… Can't i just use one search box to search any thing ?
    – brainHax
    Feb 18, 2014 at 14:39
  • 1
    For both the facets and fulltext search work, you need to index the fields separately. The Facets will work properly when using the Taxonomy Term type, and then you can index the Term Names using the Fulltext type that should then should show up when using the search box. Feb 18, 2014 at 15:00
  • 1
    @KyleTaylored, I'm having the same issue but I'm using the address field. So I can not change it to a Taxonomy Term. What should I do in this case ? Feb 25, 2015 at 15:18
  • What can be done when the facet field is a text field ?
    – Matoeil
    Jan 21, 2022 at 11:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.