lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <m...@apache.org>
Subject Re: Solr 7.7.1 issue: TemplateTransformer doesn't take the value of static template attribute value
Date Tue, 07 May 2019 09:07:41 GMT
I suppose you can start from exploring
https://github.com/apache/lucene-solr/blob/master/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestVariableResolverEndToEnd.java

On Tue, May 7, 2019 at 10:13 AM Irfan Nagoo <irfan.nagoo@ventivtech.com>
wrote:

> Any inputs on this issue please?
>
>
>
> Thanks, Irfan
>
>
>
> ________________________________
> From: Irfan Nagoo <irfan.nagoo@ventivtech.com>
> Sent: Friday, May 3, 2019 11:38:22 PM
> To: solr-user@lucene.apache.org
> Subject: Solr 7.7.1 issue: TemplateTransformer doesn't take the value of
> static template attribute value
>
> CAUTION: This email originated from outside of the VentivTech organization.
>
>
> Hi,
>
> Recently we upgraded our Solr from 5.1 to 7.7.1.  Here is an example of an
> entity in data-config.xml to illustrate the issue we are facing:
>
> <entity name="category" query="..." transformer="TemplateTransformer">
>     <field name="category_name” column="c_name"   template=”CATEGORY" />
> </entity
>
> In Solr 5.1, TemplateTransformer sets the “category_name” with the value
> of static “template” attribute (catergory_name: CATEGORY). However, In Solr
> 7.7.1, TemplateTransformer sets the “category_name” with the value of
> database column value (c_name). However, if we change the name of database
> column (c_name) to any non-existent name (say x_abc),  TemplateTransformer
> sets the “category_name” with the value of “template” attribute.
>
> This inconsistency is causing issues in our application since the
> TemplateTransformer should take the value of template attribute in all
> cases.  Please verify if this is a bug?  Any help in this regard would be
> much appreciated.
>
> Thanks, Irfan
> IMPORTANT NOTICE: This e-mail message is intended to be received only by
> persons entitled to receive the confidential information it may contain.
> E-mail messages to clients of Ventiv Technology Inc., may contain
> information that is confidential and legally privileged. Please do not
> read, copy, forward, or store this message unless you are an intended
> recipient of it. If you have received this message in error, please forward
> it to the sender and delete it completely from your computer system.
> IMPORTANT NOTICE: This e-mail message is intended to be received only by
> persons entitled to receive the confidential information it may contain.
> E-mail messages to clients of Ventiv Technology Inc., may contain
> information that is confidential and legally privileged. Please do not
> read, copy, forward, or store this message unless you are an intended
> recipient of it. If you have received this message in error, please forward
> it to the sender and delete it completely from your computer system.
>


-- 
Sincerely yours
Mikhail Khludnev

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