I discovered the issue. Some of my dynamic field names have spaces in them. If 
I replace ' ' with '_', then it works fine. This really isn't a great solution, 
since a '_' could be a legitimate part of the field name. I tried enclosing the 
entire field name with quotes, so the query is:

http://localhost:8080/q=...&fl=StaticField1,StaticField2,%22s_Dynamic+Field+1%22

I am guessing that Solr is parsing "s_Dynamic", "Field", and "1" as separate 
fields. Does anyone know a way around this? My initial testing shows that I 
have a similar problem if I query by that field as well. I was hoping that Solr 
would interpret text enclosed by quotes as a single field, but this does not 
appear to be the case.

Also, this all works fine in a facet count for facet.field. But in that case, 
the parameter take a single field name.

facet.query also fails. So, perhaps this is a Lucene issue?

----- Original Message ----
From: Chris Hostetter <[EMAIL PROTECTED]>
To: Solr <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2007 5:30:57 PM
Subject: Re: listing dynamic field in search results


: But
: http://localhost:8080/q=...&fl=StaticField1,StaticField2,s_DynamicField1
: will only return StaticField1 and StaticField2.

that doesn't sound right.   If i use the example configs/docs and hit
this query...

http://localhost:8983/solr/select?q=solr&&fl=name%2Cincubationdate_dt

...i get both fields, and incubationdate_dt is a dynamic field.


-Hoss





Reply via email to