You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by mohit2360 <mo...@xtremumsolutions.com> on 2014/02/06 12:44:52 UTC

Retrieving the document after partial updates.

I have made all the suggested changes to my project so far suggested through
various forum.

like ::   http://plone.org/products/ftw.solr

Though the fields are partially updated but when is projection is selected 
it shows only the  fields used in the app for updates and "_version_" with
some value but not the all the fields of the document.

Scenario ::: 
 
these many fields in the documents 


[{"person_id":203433,"fname":"Amar","lname":"Jyadav","isLoggedIn":true}]


after setting ,"isLoggedIn" to false then to its showing then to it is not
showing any changes but rather this is projected by Solr engine.  


[{"person_id":203433,"isLoggedIn":true,"_version_":1459287359397822464}]


rest fields like fname, lname    are not there after partial updates.

Solution required as soon as possible. 



--
View this message in context: http://lucene.472066.n3.nabble.com/Retrieving-the-document-after-partial-updates-tp4115808.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: Retrieving the document after partial updates.

Posted by Jack Krupansky <ja...@basetechnology.com>.
Also, "An <updateLog/> must be configured in your solrconfig.xml in order 
for atomic document updates to be used."

For the full description and limitations, see:
https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documents
http://wiki.apache.org/solr/Atomic_Updates

Any chance that you added stored=true after you had indexed the documents? 
If so, you will need to reindex the documents.

-- Jack Krupansky

-----Original Message----- 
From: mohit2360
Sent: Friday, February 7, 2014 2:22 AM
To: dev@lucene.apache.org
Subject: Re: Retrieving the document after partial updates.

Thanks Jack Krupansky for your quick response .!!!!!!

Schema.xml snapshot of the core is ::

<fields>
<field name="person_id" type="int" indexed="true" stored="true"
multiValued="false" required="false"/>
<field name="name" type="text_general" indexed="true" stored="true"
multiValued="false"/>
<field name="fname" type="text_general" indexed="true" stored="true"
multiValued="false"/>
<field name="isLoggedIn" type="boolean" indexed="true" stored="true"
required="false"/>
<field name="_version_" type="long" indexed="true" stored="true"
multiValued="false"/>
</fields>

Kindly reply as soon as possible. My project Got stuck up ...





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Retrieving-the-document-after-partial-updates-tp4115808p4115989.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: Retrieving the document after partial updates.

Posted by mohit2360 <mo...@xtremumsolutions.com>.
Thanks Jack Krupansky for your quick response .!!!!!! 

Schema.xml snapshot of the core is ::

<fields>
<field name="person_id" type="int" indexed="true" stored="true"
multiValued="false" required="false"/>
<field name="name" type="text_general" indexed="true" stored="true"
multiValued="false"/>
<field name="fname" type="text_general" indexed="true" stored="true"
multiValued="false"/>
<field name="isLoggedIn" type="boolean" indexed="true" stored="true"
required="false"/>
<field name="_version_" type="long" indexed="true" stored="true"
multiValued="false"/>
</fields>

Kindly reply as soon as possible. My project Got stuck up ...  





--
View this message in context: http://lucene.472066.n3.nabble.com/Retrieving-the-document-after-partial-updates-tp4115808p4115989.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: Retrieving the document after partial updates.

Posted by Jack Krupansky <ja...@basetechnology.com>.
Can you confirm that your Solr schema satisfies this stated requirement from 
the description you referenced:

"If there's a field in the Solr schema that's not stored=True, it will get 
dropped from documents in Solr on the next update to that document. Indexing 
won't fail, but that field simply won't have any content any more."

IOW, the stored="true" attribute is needed on any Solr fields that you wish 
to preserve on atomic update operations.

-- Jack Krupansky

-----Original Message----- 
From: mohit2360
Sent: Thursday, February 6, 2014 6:44 AM
To: dev@lucene.apache.org
Subject: Retrieving the document after partial updates.

I have made all the suggested changes to my project so far suggested through
various forum.

like ::   http://plone.org/products/ftw.solr

Though the fields are partially updated but when is projection is selected
it shows only the  fields used in the app for updates and "_version_" with
some value but not the all the fields of the document.

Scenario :::

these many fields in the documents


[{"person_id":203433,"fname":"Amar","lname":"Jyadav","isLoggedIn":true}]


after setting ,"isLoggedIn" to false then to its showing then to it is not
showing any changes but rather this is projected by Solr engine.


[{"person_id":203433,"isLoggedIn":true,"_version_":1459287359397822464}]


rest fields like fname, lname    are not there after partial updates.

Solution required as soon as possible.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Retrieving-the-document-after-partial-updates-tp4115808.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org