Andrey Kostromin
Andrey Kostromin

Reputation: 15

Use hyphen as word delimeter

How to index "multi-player" as "multi", "player", "multiplayer"

So i want for "multi", "player", "multiplayer"

to include to results "multi-player"

Upvotes: 0

Views: 83

Answers (1)

Yann
Yann

Reputation: 1019

You can use WordDelimiterFilterFactory in your analyzer for this term; by default, "multi-player" will be indexed as"multi" and "player". Add the option catenateWords="1" so that "multi-player" will also be indexed as "multiplayer". See http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.WordDelimiterFilterFactory for all the options.

Upvotes: 1

Related Questions