Appending *-wildcard suffix on all terms for querying: move logic from client to server side

2013-07-23 Thread Paul Blanchaert
My client has an installation with 3 different clients using the same Solr index. These clients all append a * wildcard suffix in the query: user enters abc def while search is performed against (abc* def*). In order to move away from this way of searching, we'd like to move the clients away from

Re: Appending *-wildcard suffix on all terms for querying: move logic from client to server side

2013-07-23 Thread Mikhail Khludnev
It can be done by extending LuceneQParser/SolrQueryParser see http://wiki.apache.org/solr/SolrPlugins#QParserPlugin there is newTermQuery(Term) it should be overridden and delegate to newPrefixQuery() method. Overall, I suggest you consider to use EdgeNGramTokenFilter in index time, and then

Re: Appending *-wildcard suffix on all terms for querying: move logic from client to server side

2013-07-23 Thread Paul Blanchaert
Thanks Mikhail, I'll go for your EdgeNGramTokenFilter suggestion. - Kind regards, Paul