Re: Using solrJ to get all fields in a particular schema/index

2010-06-03 Thread Rakhi Khatwani
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 >

Re: Using solrJ to get all fields in a particular schema/index

2010-05-25 Thread Chris Hostetter
: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

Re: Using solrJ to get all fields in a particular schema/index

2010-05-25 Thread findbestopensource
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

Re: Using solrJ to get all fields in a particular schema/index

2010-05-25 Thread Rakhi Khatwani
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

Re: Using solrJ to get all fields in a particular schema/index

2010-05-25 Thread findbestopensource
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

Re: Using solrJ to get all fields in a particular schema/index

2010-05-25 Thread findbestopensource
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

Re: Using solrJ to get all fields in a particular schema/index

2010-05-25 Thread findbestopensource
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

Using solrJ to get all fields in a particular schema/index

2010-05-25 Thread Rakhi Khatwani
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