Can I use the Solr term component with filtering on non-urgent fields

http: // localhost: 8080 / search / terms? terms.prefix = ab & terms.fl = text & terms.sort = count

I have a terms query above that works as I expect. Returns all terms from the "text" field, which has a specific prefix, sorted by account.

I want to return only those terms where the other "language" field is "en", is it possible to add such a filter to the terms query?

+4
source share
1 answer

Unfortunately, you cannot filter when accessing indexed terms in a field through the TermsComponent . This is one of the limitations that you encounter, for example, when making auto offers. If you make automatic suggestions, one of the ways that filtering is supported is based on the facet and prefix parameter, for example, explained here .

+4
source

Source: https://habr.com/ru/post/1395108/


All Articles