I added this in schema.xml

<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 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
 Source) at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown 
Source) at
###

Is this a syntax problem? Am I writing defType wrong?


Thank you

-----Message d'origine-----
De : Ahmet Arslan [mailto:iori...@yahoo.com] 
Envoyé : vendredi 10 août 2012 16:22
À : solr-user@lucene.apache.org
Objet : RE: multi-searching problem

> It seems more complicate than i
> need.
> I just want, if the user specify nothing, to search in all my fields 
> that I declared in my schema.xml like that :
> <defaultSearchField>article_nom</defaultSearchField>
> but not only article_nom but all fields.
> There should be some simple way to do that without using all of 
> this..?
> Or am I wrong? 

It is not that complicated. Just list your fields in qf parameter, that's all. 
defType=edismax&qf=field1 field2 field3 ... 


Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.


Reply via email to