lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: Expansion of fields in fl parameter
Date Thu, 28 Nov 2013 14:52:12 GMT
If you have chosen to use improper field names, then in the fl parameter you 
need to reference them using the "field" function:


The basic concept is that Solr doesn't ban improper field names, but that 
they don't work in all contexts.

-- Jack Krupansky

-----Original Message----- 
From: Ahmet Arslan
Sent: Thursday, November 28, 2013 9:24 AM
Subject: Re: Expansion of fields in fl parameter

Hi Alvaro,

That's really weird. When choosing field names it is recommend to use java 
variable naming conventions.

Can you change field names to text_01 , text01 and try again? Problem still 

Do you have dynamicField definitions? What happens when you request all 
fields (fl=*)?

On Thursday, November 28, 2013 3:59 PM, Alvaro Cabrerizo 
<> wrote:
The question:

┬┐Is there a way to avoid field expansion when adding
fl<>parameter to
the request?

The environment:

Solr 4.4 using the next schema.xml

<field name="id" type="string" indexed="true" stored="true" required="true"
<field name="01_text" type="string" indexed="true" stored="true" />
<field name="01text" type="string" indexed="true" stored="true" />
<field name="text" type="string" indexed="true" stored="true"  />

The test has been done importing the next data:

{"id": "1","text": "text","01text": "text","01_text": "text"}

The testing:

Query and response 1:


The response includes a field that doesnt exists "01" and an existing one
(text) that I dont want to return.


I expect the next response


Query and response 2



I expect the next response:


In both cases, I just want to return the fields included in fl.


View raw message