You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2018/10/08 15:47:00 UTC

[jira] [Resolved] (SOLR-12841) not able to use deleteDocByQuery

     [ https://issues.apache.org/jira/browse/SOLR-12841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erick Erickson resolved SOLR-12841.
-----------------------------------
    Resolution: Not A Problem

The JIRA issue tracker is not a support portal. Please raise this question on the user's list at solr-user@lucene.apache.org, see: (http://lucene.apache.org/solr/community.html#mailing-lists-irc) there are a _lot_ more people watching that list who may be able to help and you'll probably get responses much more quickly.

When you raise question on the user's list, include pertinent details as appropriate, e.g. Solr version, how you start Solr, sample data, queries and responses if possible, along with what you expect to see but don't. If you see messages, and particularly exceptions in your Solr log, include those too.

You might want to review: [https://wiki.apache.org/solr/UsingMailingLists]

If it's determined that this really is a code issue or enhancement to Solr and not a configuration/usage problem, we can raise a new JIRA or reopen this one.

> not able to use deleteDocByQuery
> --------------------------------
>
>                 Key: SOLR-12841
>                 URL: https://issues.apache.org/jira/browse/SOLR-12841
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.6.2
>            Reporter: Sudheer
>            Priority: Critical
>
> my schema:
> id is primary key here:
>  <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false"/> 
>  <field indexed="true" multiValued="false" docValues="true" name="TC_0Y0_ItemRevision_0Y0_awp0Item_item_id" required="false" stored="false" type="string"/>
>  <field indexed="true" multiValued="false" docValues="true" name="TC_0Y0_Item_uid" required="false" stored="false" type="string"/>
>  <field indexed="true" multiValued="false" docValues="true" name="TC_0Y0_ProductScope_0Y0_product_uid" required="false" stored="true" type="string"/> 
>  
> I want to delete using field TC_0Y0_ProductScope_0Y0_product_uid:
> my db-data config file:
>  <entity name="onlydeleteByQuery" pk="pproduct" transformer="TemplateTransformer"
>  query="Select pproduct from PQSEARCHINDEXEDPRODUCT t1 where t1.pis_deleted = 1" >
>  <field column="${deleteDocByQuery}" template="TC_0Y0_ProductScope_0Y0_product_uid:${onlydeleteByQuery.pproduct}"/>
>  <field column="ID" name="id" />
>  <field column="ITEMID" name="TC_0Y0_ItemRevision_0Y0_awp0Item_item_id" />
>  <field column="POBJECT" name="TC_0Y0_Item_uid" />
>  <field column="PEND_ITEM" name="TC_0Y0_ProductScope_0Y0_product_uid" />
>  </entity>
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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