3 ms·
> All fields in a document are assumed to be of the same language That is not true. You can configure analyzers on a field basis, both for search and index.
by Argorak 12y ago
> All fields in a document are assumed to be of the same language
That is not true. You can configure analyzers on a field basis, both for search and index.
- pilif 12y agoOh. Cool. Thanks. When I was looking into this, it wasn't yet possible. That's very interesting for me. ElasticSearch has MUCH better support for language analysis to the point where it might be worth it to move from Postgres tsearch to ElasticSearch, but this limitation was a huge hurdle for me not being able to move.
- Argorak 12y agoI am surprised, that's possible since any version I've been working with (0.12x and up). What you cannot do is control that via client (e.g. "this index request uses the chinese analyzer for that field only"), because the analyzer setting in the index request overwrites all other configs. Mappings supported that for a long time. One of the arts of search optimization on Elasticsearch is finding fields that you want to index multiple times with different analyzers and combine in a clever fashion.