I have an issue when I try to query using wildcard in a term that has a special character in it.
As an example if I index "Test::Here",I search using this using wildcard ? for "TE?T\:\:Here" (NOTE: I escaped ‘:’). I do not get any results. I use standard analyser and queryparser for indexing and searching.
Anyone encountered similar issue?
StandardAnalyzerusesStandardTokenizer, soTest::Hereis seen as two tokens:TestandHere. Wildcard queries are not run through an analyzer, so you end up matching colons against the terms that do not contain them. You need to use different tokenizer, for exampleWhitespaceTokenizer.