Re: Solr 1.4 query fails against all fields, but succeed if field is specified.
: > Is there any way to query all fields including dynamic ones? : : Yes, using the *:term query. (Please note that the asterisk should not : be quoted.) uh ...no, completely incorrect. you can not use "*" to denote 'all fields' in that way. there is no syntax for "find this term in any field" ... every query involves a field of some kind. if you want to be able to query against the text of "all" fields you need to use copyField to create some kind of "all" or "allText" field 9you can name it whatever you want) -Hoss
Re: Solr 1.4 query fails against all fields, but succeed if field is specified.
I finally got a solution. As I use dynamic fields. I use the copyField to a global indexed attribute, and specify this attribute as defaultSearchField in my schema. The *:term with "standard" query type fails without this... This solution requires to double the required indexing data but works in all cases... In my schema I have: Some other fields are "lowercase" or "int" types. Regards 2010/5/31 Michael Kuhlmann > Am 31.05.2010 12:36, schrieb olivier sallou: > > Is there any way to query all fields including dynamic ones? > > Yes, using the *:term query. (Please note that the asterisk should not > be quoted.) > > To answer your question, we need more details on your Solr > configuration, esp. the part of schema.xml that defines your "note" field. > > Greetings, > Michael > > >
Re: Solr 1.4 query fails against all fields, but succeed if field is specified.
Am 31.05.2010 12:36, schrieb olivier sallou: > Is there any way to query all fields including dynamic ones? Yes, using the *:term query. (Please note that the asterisk should not be quoted.) To answer your question, we need more details on your Solr configuration, esp. the part of schema.xml that defines your "note" field. Greetings, Michael
Re: Solr 1.4 query fails against all fields, but succeed if field is specified.
Ok, I use default e.g. standard request handler. Using "*:Aspergillus" does not work either. I can try with DisMax but this means that I know all field names. My schema knows a number of them, but some other fields are defined via dynamic fields (I know the type, but I do not know their names). Is there any way to query all fields including dynamic ones? thanks Olivier 2010/5/31 Michael Kuhlmann > Am 31.05.2010 11:50, schrieb olivier sallou: > > Hi, > > I have created in index with several fields. > > If I query my index in the admin section of solr (or via http request), I > > get results for my search if I specify the requested field: > > Query: note:Aspergillus (look for "Aspergillus" in field "note") > > However, if I query the same word against all fields ("Aspergillus" or > > "all:Aspergillus") , I have no match in response from Solr. > > Querying "Aspergillus" without a field does only work if you're using > DisMaxHandler. > > Do you have a field "all"? > > Try "*:Aspergillus" instead. >
Re: Solr 1.4 query fails against all fields, but succeed if field is specified.
On 5/31/2010 11:50 AM, olivier sallou wrote: Hi, I have created in index with several fields. If I query my index in the admin section of solr (or via http request), I get results for my search if I specify the requested field: Query: note:Aspergillus (look for "Aspergillus" in field "note") However, if I query the same word against all fields ("Aspergillus" or "all:Aspergillus") , I have no match in response from Solr. Do you have any idea of what can be wrong with my index? Regards Olivier Look for the tag in your schema.xml. The field defined in it determines the default field which is searched when no explicit field is specified in your query. Regards, gwk
Re: Solr 1.4 query fails against all fields, but succeed if field is specified.
Check your request handler setting, what do you have in the query field (qf) entry ? On 5/31/10, olivier sallou wrote: > > Hi, > I have created in index with several fields. > If I query my index in the admin section of solr (or via http request), I > get results for my search if I specify the requested field: > Query: note:Aspergillus (look for "Aspergillus" in field "note") > However, if I query the same word against all fields ("Aspergillus" or > "all:Aspergillus") , I have no match in response from Solr. > > Do you have any idea of what can be wrong with my index? > > Regards > > > Olivier > -- Abdelhamid ABID Software Engineer- J2EE / WEB
Re: Solr 1.4 query fails against all fields, but succeed if field is specified.
Am 31.05.2010 11:50, schrieb olivier sallou: > Hi, > I have created in index with several fields. > If I query my index in the admin section of solr (or via http request), I > get results for my search if I specify the requested field: > Query: note:Aspergillus (look for "Aspergillus" in field "note") > However, if I query the same word against all fields ("Aspergillus" or > "all:Aspergillus") , I have no match in response from Solr. Querying "Aspergillus" without a field does only work if you're using DisMaxHandler. Do you have a field "all"? Try "*:Aspergillus" instead.
Solr 1.4 query fails against all fields, but succeed if field is specified.
Hi, I have created in index with several fields. If I query my index in the admin section of solr (or via http request), I get results for my search if I specify the requested field: Query: note:Aspergillus (look for "Aspergillus" in field "note") However, if I query the same word against all fields ("Aspergillus" or "all:Aspergillus") , I have no match in response from Solr. Do you have any idea of what can be wrong with my index? Regards Olivier