> <schema>
> <fields>
> ...
> <dynamicField name="attr_*"    
> type="text" indexed="true" stored="true"
> multiValued="true"/> 
>    &defType = edismax &qf =
> article_id article_nom   
>  </fields>
> 
> <uniqueKey>article_id</uniqueKey>
> 
> <solrQueryParser defaultOperator="OR"/>
>  
> </schema>
> 
> 
> But i have this error: 
> 
> ###
> org.xml.sax.SAXParseException: The reference to entity
> "defType" must end with the ';' delimiter. at

Hi Videnova,

&defType=edismax&qf=article_id article_nom&start=0&rows=10 is meant to append 
to you search URL. Alternatively you can set these parameters in "defaults" 
section.  
 
These default definition are belong to solrconfig.xml. (not schema.xml) Please 
see example solrconfig and search for 'edismax'

http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/example/solr/collection1/conf/solrconfig.xml

You should have something like that : 

 <requestHandler name="/search" class="solr.SearchHandler">
     <lst name="defaults">
       <str name="echoParams">explicit</str>    

       <!-- Query settings -->
       <str name="defType">edismax</str>
       <str name="qf">article_id article_nom</str>
       <str name="df">text</str>
     </lst>

Reply via email to