Elastic Search Engines and Faces

I value Elastic Search for a client. I started playing with the API and successfully created the index and added documents to the search. The main reason for using Elastic Search is that it provides facet functionality.

I'm having trouble understanding analyzers, tokenizers, and filters, and how they fit into facets. I want to use keywords, dates, search terms, etc. Like my facets.

How can I include analyzers in my search and how can I use it with facets?

+5
source share
1 answer

When Elastic Search indexes a string by default, it usually breaks them into tokens, for example: “Fox jump over a wall” will be denoted by separate words as “Fox”, “jump”, “over”, “wall”.

So what does this do? If you must search for your documents with Lucene Query, you may not get the right string, because Elastic Search will automatically search for tokenized words instead of the entire string, so the search results will be greatly affected.

For example, if you search for "Fox jump over the wall", you will not get any result. Searching for Fox will give you results instead.

API Elastic Search not, , , , .

Tokenizers Elastic Search. , API .

, , , , , .

+9

All Articles