Hi,
Oh okay. Thanks a ton
On Tue, May 25, 2010 at 11:15 PM, Chris Hostetter
wrote:
>
> :Is there any way to get all the fields (irrespective of
> whether
> : it contains a value or null) in solrDocument.
>
> no. a document only has "Field" instances for the fields which it has
>
:Is there any way to get all the fields (irrespective of whether
: it contains a value or null) in solrDocument.
no. a document only has "Field" instances for the fields which it has
values for. it's also not a feature that would even be theoretically
posisbly to add, becuase of d
If a field doesn't have a value, You will get NULL on retrieving it. How
could you expect a value for a field which is not provided?
You have two options, choose either one..
1. If the fieldvalue is returned NULL then display a proper error / user
defined message. Handle the error.
2. Add a dummy
Hi Aditya,
i can retrieve all documents. but cannot retrieve all the fields
in a document(if it does not hv any value).
For example i get a list of documents, some of the documents have some value
for title field, and others mite not contain a value for title field. in
anycase i need to
Resending it as there is a typo error.
To reterive all documents, You need to use the query/filter FieldName:*:* .
Regards
Aditya
www.findbestopensource.com
On Tue, May 25, 2010 at 4:29 PM, findbestopensource <
findbestopensou...@gmail.com> wrote:
> To reterive all documents, You need to use
To reterive all documents, You need to use the query/filter *FieldName:*:**
Regards
Aditya
www.findbestopensource.com
On Tue, May 25, 2010 at 4:14 PM, Rakhi Khatwani wrote:
> Hi,
> Is there any way to get all the fields (irrespective of whether
> it contains a value or null) in solrDocu
To reterive all documents, You need to use the query/filter *FieldName:*:**
Regards
Aditya
www.findbestopensource.com
On Tue, May 25, 2010 at 4:14 PM, Rakhi Khatwani wrote:
> Hi,
> Is there any way to get all the fields (irrespective of whether
> it contains a value or null) in solrDo
Hi,
Is there any way to get all the fields (irrespective of whether
it contains a value or null) in solrDocument.
or
Is there any way to get all the fields in schema.xml of the url link (
http://localhost:8983/solr/core0/)??
Regards,
Raakhi