Reputation: 100
For certain use cases, e.g. with NGram or EdgeNGram tokenizers, it should be possible to define 2 different analyzers for a manual index, one for the index task and one for the search/query task.
Upvotes: 0
Views: 250
Reputation: 15086
This is currently not supported in Neo4j (as of 3.5.11). The documentation states:
... Supported settings are 'analyzer', for specifying what analyzer to use when indexing and querying. ...
Neo4j doesn't provide a way to configure the analyzers (apart from specifying which analyzer to use, or deploying completely custom analyzer) so you would seldom want to define different analyzers for indexing and search.
In contrast full text search engines such as Elastic Search allow you to define individual steps in the analyzer. Then it makes sense to allow to define index analyzer and search analyzer differently (although I would argue this is rare and if it happens they are usually very similar anyway).
Upvotes: 1