You have two problems. 1> the & may or may not be interpreted as a character of significance in the XML, you'd probably need make it an entity as &
2> this information should NOT be in your schema.xml anyway. defType is a request handler parameter, and should be in a request handler in solrconfig.xml. Where you will see that there aren't any & characters, you'd add this to the defaults in your request handler like <str name="defType">edismax</str> <str name="qf">article_id article_nom</str> not an '&' character in sight <G>... Best Erick On Mon, Aug 13, 2012 at 12:42 AM, Videnova, Svetlana <svetlana.viden...@logica.com> wrote: > 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. > >