Le 17/12/2012 14:13, Ahmet Arslan a écrit :
Wildcard seems not to work inside double quote request.
I get always 0 result.

I.e:
title:"plastic bicycle" <== 79 results in my database
title:"plast* bicycle" <== 0 result found

Is exist a solution for that ?

Hi Bruno,

You can make use of https://issues.apache.org/jira/browse/SOLR-1604


Oh ok thanks but after reading this page,
it seems not solved... Patchs are available ok but not easy for me to add it (or re-built war).

Is this, can be applied to Solr 3.6?

1-) extract ComplexPhrase.zip and run 'mvn package'
2-) copy the ComplexPhrase/target/ComplexPhrase-1.0.jar to solrhome/lib directory
3-) register queryparser to solrhome/conf/solrconfig.xml by adding
<queryParser name="complexphrase" class="org.apache.solr.search.ComplexPhraseQParserPlugin" />
4-) enable it by appending &defType=complexphrase to search url.
5-) More permanent usage can be configured in solrconfig.xml
<requestHandler name="standard" class="solr.StandardRequestHandler" default="true">
<lst name="defaults">
<str name="defType">complexphrase</str>
</lst>
</requestHandler>

Reply via email to