Jacobian
Jacobian

Reputation: 10802

Implementing partial word search in Apache Solr

I'm new to Apache Solr (v. 5.2.1), but I've already managed to do something - like indexing all files in a directory and doing simple search. Now, what I want - is to implement partial word search. In this blog the advice is to edit schema.xml, but I'm not sure exactly what schema file to edit, since there are dozens of them in solar directory. Or probably you know another way of implementing partial word search.

Upvotes: 0

Views: 298

Answers (1)

nick_v1
nick_v1

Reputation: 1664

The collection schema.xml file is located in the collection config directory. In Solr Admin UI - Core Admin, click on the collection check InstanceDir.

Inside that directory, there should be another directory called conf, schema is in there.

As for wildcard search, Solr already comes with some wildard searches, however to fully search for any part of the word I would suggest configuring ngram tokenizer. Here is a bit more info on it: https://cwiki.apache.org/confluence/display/solr/Tokenizers#Tokenizers-N-GramTokenizer

Upvotes: 2

Related Questions