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 Billy Newman <ne...@gmail.com> on 2012/10/03 03:51:37 UTC
Follow links in xml doc
Hello again all.
I have a URLDataSource to index xml data. Is there any way to follow
links within the xml doc and index items in those under the same
document? I.E. if I search for a word or term and that term lives in
a link of doc with ID 12345 I would like to return that doc when
searched.
Thanks,
Billy
Re: Follow links in xml doc
Posted by Mikhail Khludnev <mk...@griddynamics.com>.
Billy,
Have you tied
http://wiki.apache.org/solr/DataImportHandler#ScriptTransformer ?
On Wed, Oct 3, 2012 at 7:11 AM, Otis Gospodnetic <otis.gospodnetic@gmail.com
> wrote:
> Hi Billy,
>
> There is nothing in Solr that will do XML parsing and link extraction,
> so you'll need to do that part. Once you do that have a look at Solr
> join for parent-child querying.
>
> http://search-lucene.com/?q=solr+join
>
> Otis
> --
> Search Analytics - http://sematext.com/search-analytics/index.html
> Performance Monitoring - http://sematext.com/spm/index.html
>
>
> On Tue, Oct 2, 2012 at 9:51 PM, Billy Newman <ne...@gmail.com> wrote:
> > Hello again all.
> >
> > I have a URLDataSource to index xml data. Is there any way to follow
> > links within the xml doc and index items in those under the same
> > document? I.E. if I search for a word or term and that term lives in
> > a link of doc with ID 12345 I would like to return that doc when
> > searched.
> >
> > Thanks,
> > Billy
>
--
Sincerely yours
Mikhail Khludnev
Tech Lead
Grid Dynamics
<http://www.griddynamics.com>
<mk...@griddynamics.com>
Re: Follow links in xml doc
Posted by Otis Gospodnetic <ot...@gmail.com>.
Hi Billy,
There is nothing in Solr that will do XML parsing and link extraction,
so you'll need to do that part. Once you do that have a look at Solr
join for parent-child querying.
http://search-lucene.com/?q=solr+join
Otis
--
Search Analytics - http://sematext.com/search-analytics/index.html
Performance Monitoring - http://sematext.com/spm/index.html
On Tue, Oct 2, 2012 at 9:51 PM, Billy Newman <ne...@gmail.com> wrote:
> Hello again all.
>
> I have a URLDataSource to index xml data. Is there any way to follow
> links within the xml doc and index items in those under the same
> document? I.E. if I search for a word or term and that term lives in
> a link of doc with ID 12345 I would like to return that doc when
> searched.
>
> Thanks,
> Billy