You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Chantal Ackermann <ch...@btelligent.de> on 2010/11/10 12:58:33 UTC

Output Search Result in ADD-XML-Format

Dear all,

my use case is:

Creating an index using DIH where the sub-entity is querying another
SOLR index for more fields.
As there is a very convenient attribute "useSolrAddSchema" that would
spare me to list all the fields I want to add from the other index, I'm
looking for a way to get the search results in the ADD format directly.

Before starting on the XSLT file that would transform the regular SOLR
result into an SOLR update xml, I just wanted to ask whether there
already exists a solution for this. Maybe I missed some request handler
that already returns the result in update format?

Thanks!
Chantal


RE: Output Search Result in ADD-XML-Format

Posted by Chantal Ackermann <ch...@btelligent.de>.
Thank you, James. I was looking for something like that (and I remember
having stumbled over it, in the past, now that you mention it).

I've created an xslt file that transforms the regular result to an
update xml document. Seeing that the SolrEntityProcessor is still in
development, I will stick to the XSLT solution while we are still using
1.4 but I will add a note that with the new release we should try this
SolrEntityProcessor.

(Reading through the JIRA issue I'm not sure whether I can simply get
all fields from the other index and dump them into the index which is
being built. With the XSLT + useSolrAddSchema solution this works just
fine without the need to list all the fields. I should try that before
the next solr release to be able to give some feedback.)

Thanks!
Chantal


On Wed, 2010-11-10 at 15:13 +0100, Dyer, James wrote:
> I'm not sure, but SOLR-1499 might have what you want.
> 
> https://issues.apache.org/jira/browse/SOLR-1499
> 
> James Dyer
> E-Commerce Systems
> Ingram Content Group
> (615) 213-4311
> 
> 
> -----Original Message-----
> From: Chantal Ackermann [mailto:chantal.ackermann@btelligent.de] 
> Sent: Wednesday, November 10, 2010 5:59 AM
> To: solr-user@lucene.apache.org
> Subject: Output Search Result in ADD-XML-Format
> 
> Dear all,
> 
> my use case is:
> 
> Creating an index using DIH where the sub-entity is querying another
> SOLR index for more fields.
> As there is a very convenient attribute "useSolrAddSchema" that would
> spare me to list all the fields I want to add from the other index, I'm
> looking for a way to get the search results in the ADD format directly.
> 
> Before starting on the XSLT file that would transform the regular SOLR
> result into an SOLR update xml, I just wanted to ask whether there
> already exists a solution for this. Maybe I missed some request handler
> that already returns the result in update format?
> 
> Thanks!
> Chantal
> 




RE: Output Search Result in ADD-XML-Format

Posted by "Dyer, James" <Ja...@ingrambook.com>.
I'm not sure, but SOLR-1499 might have what you want.

https://issues.apache.org/jira/browse/SOLR-1499

James Dyer
E-Commerce Systems
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: Chantal Ackermann [mailto:chantal.ackermann@btelligent.de] 
Sent: Wednesday, November 10, 2010 5:59 AM
To: solr-user@lucene.apache.org
Subject: Output Search Result in ADD-XML-Format

Dear all,

my use case is:

Creating an index using DIH where the sub-entity is querying another
SOLR index for more fields.
As there is a very convenient attribute "useSolrAddSchema" that would
spare me to list all the fields I want to add from the other index, I'm
looking for a way to get the search results in the ADD format directly.

Before starting on the XSLT file that would transform the regular SOLR
result into an SOLR update xml, I just wanted to ask whether there
already exists a solution for this. Maybe I missed some request handler
that already returns the result in update format?

Thanks!
Chantal