lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Khai Doan <khaitd...@gmail.com>
Subject Re: How to tell Solr to return all fields including empty fields?
Date Sun, 03 Oct 2010 05:36:09 GMT
Thanks for replying.  I need to have the empty fields because if the field
is not there, the Java library (
http://www.json.org/javadoc/org/json/JSONObject.html) that I use to parse
the result will throw an exception.  Quite inconvenient.

Thanks,
Khai

On Fri, Oct 1, 2010 at 6:45 PM, Erick Erickson <erickerickson@gmail.com>wrote:

> Nope. If a field is empty, it's just not in the document. You could index
> an empty value (some unique value for empty) if you really need this.
>
> But a more interesting question is why you need this. What is it about
> returning an empty field that's important? Couldn't you detect this through
> the absence of the field?
>
> Best
> Erick
>
> On Fri, Oct 1, 2010 at 3:44 PM, Khai Doan <khaitdoan@gmail.com> wrote:
>
> > Hello everyone,
> >
> > Right now, I am using fl=*,score to get all fields from Solr.  However
> > empty
> > fields are not returned.  Is there a way for me to tell Solr to return
> all
> > fields including empty fields?
> >
> > Thanks,
> > Khai
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message