Reputation: 41
Query is this :- (Profisee) Indexed Field has the exact same token as in the above input query. But Solr search is giving zero results. If Query is this :- (Profisee Then I am able to find the document in the result.
P.S: I am able to get the document result for (Pro, (Profi, (Profise etc queries also. Here are the attached images.
Here is my schema.xml definition for the fieldtype
Upvotes: 1
Views: 84
Reputation: 52930
First, please include the relevant details in your question next time, as images are hard to search, makes it hard to get the overview of your question and is hard to read for those that doesn't have perfect vision.
For your actual question, the problem is that you have a WhitespaceTokenizer. This will only break words on whitespace, such as . The indexed document contains your term as
(foo)
, which means that only (foo)
will match (since the tokenizer only breaks on whitespace, and (
or )
isn't whitespace).
foo (bar)
will be indexed as two tokens, foo
and (bar)
. Searching for (bar
will match neither.
Use the StandardTokenizer to get the behaviour you want, or use a WordDelimiterGraphFilterFactory to break the word into further tokens.
Upvotes: 1