A
A
Andrew2014-11-08 18:53:33
Solr
Andrew, 2014-11-08 18:53:33

How to configure solr to search by tags?

Good afternoon!
I'm setting up solr and ran into this problem:
I have tags that are in a separate tags field

<field name="tags" type="text_en" indexed="true" stored="true" multiValued="true"  />

they are generated via haystack.
The tags are all in transliteration, there are either numbers, or letters (English), or the "–" symbol, as a replacement for a space.
When I do a search, a tag falls into the facets, broken by this very "-", that is, instead of tag-with-two-words:10, I get tag:10, with:10, two:10, words:10
Question: how to avoid it?
What I already did - I set WhitespaceTokenizerFactory, I was happy, I thought it helped, but no, I stopped searching for words with "-".

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question