Reputation: 41
I use Apache Solr with Drupal. The problem is that it match exact word.
Example : search 'Hello' will return just the word Hello and not another word that begin with hello.
How can I configure Apache Solr to search partial word ?
Cordially
Upvotes: 0
Views: 1551
Reputation: 52769
You need to either use wildcard queries e.g. hello*
This would either client to either enter the query in this format or modifying it in the application.
Also you need to take into account :-
#Analyzers mentions -
On wildcard and fuzzy searches, no text analysis is performed on the search word
Else, you can generate tokens using solr.EdgeNGramFilterFactory and this would match the records. e.g. hello would generate he, hel, hell, hello and hence would match all these combination.
Upvotes: 2