> @iorixxx: Sorry it took so long, had
> some difficulties upgrading to 3.5.0
> 
> It still doesnt work. Here's what I have now:
> 
> I copied text_general_rev from
> http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/example/solr/conf/schema.xml
> to my schema.xml:
>     <fieldType name="text_general_rev"
> class="solr.TextField"
> positionIncrementGap="100">
>       <analyzer type="index">
>         <tokenizer
> class="solr.StandardTokenizerFactory"/>
>         <filter
> class="solr.StopFilterFactory" ignoreCase="true"
> words="stopwords.txt" enablePositionIncrements="true" />
>         <filter
> class="solr.LowerCaseFilterFactory"/>
>         <filter
> class="solr.ReversedWildcardFilterFactory"
> withOriginal="true"
>        
>    maxPosAsterisk="3" maxPosQuestion="2"
> maxFractionAsterisk="0.33"/>
>       </analyzer>
>       <analyzer type="query">
>         <tokenizer
> class="solr.StandardTokenizerFactory"/>
>         <filter
> class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
> ignoreCase="true" expand="true"/>
>         <filter
> class="solr.StopFilterFactory" ignoreCase="true"
> words="stopwords.txt" enablePositionIncrements="true" />
>         <filter
> class="solr.LowerCaseFilterFactory"/>
>       </analyzer>
>     </fieldType>
> 
> To be complete: this the definition of the title
> fieldtype:    
>     <fieldType name="text_ws"
> class="solr.TextField"
> positionIncrementGap="100">
>       <analyzer>
>         <tokenizer
> class="solr.WhitespaceTokenizerFactory"/>
>       </analyzer>
>     </fieldType>
>     
>     
> 
> <field name="title" type="text_ws" indexed="true"
> stored="true"/>    
> <field name="title_search" type="text_general_rev"
> indexed="true"
> stored="true"/>
> <copyField source="title"
> dest="title_search"/>    
> 
> 
> title field value="Smartphone"
> 
> With this searchquery I dont get any results:
> http://localhost:8983/solr/zz/select/?indent=on&facet=true&q=*smart*&defType=dismax&qf=title_search^20.0&start=0&rows=30&fl=id,title&facet.mincount=1
> 
> What more can I do?
> Thanks!

Dismax query parser does not support wildcard queries. defType=edismax would 
work. Also defType=lucene&df=title_search&q=*smart* should work too.


Reply via email to