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 Miguel Valencia Zurera <mi...@juntadeandalucia.es> on 2016/04/01 10:41:34 UTC
Search over XML data using xpath
Hi everybody
I'm looking for the way to store XML file and keep on hierarchy of the
data because I need show full xml and besides to search inside of nodes
of xml.
Only I have found XPathEntityProcessor for import xml but it does not
keep on the hierarchy of the data.
I have not found one type of field that it allow store xml and to do
xpath. So, I have thougth parser all fields of xml file and additionaly
add a new field with the full xml.
Is there another option?
thanks
Re: Search over XML data using xpath
Posted by Alessandro Benedetti <ab...@apache.org>.
Let's try to make clarity in here : Lucene Query Syntax is not XPath.
This means you can not search Lucene Documents as you do for xml nodes.
You need to model your information according to the Lucene Document ( and
children) structure.
Then you can play with the Lucene Query language and the different Solr
Query parsers.
What the XPathEntityProcessor does, is allowing you to parse XPaths
statement and fetch values from the XML to be indexed in specific Lucene
Fields.
Then you can search as you like.
Returning the whole XML is another problem.
You can simply store it in an additional field ( without indexing).
Or you can store the URL and then pass it at front end level ...
Ect ect
Cheers
On Fri, Apr 1, 2016 at 9:41 AM, Miguel Valencia Zurera <
miguel.valencia@juntadeandalucia.es> wrote:
> Hi everybody
>
> I'm looking for the way to store XML file and keep on hierarchy of the
> data because I need show full xml and besides to search inside of nodes of
> xml.
> Only I have found XPathEntityProcessor for import xml but it does not keep
> on the hierarchy of the data.
>
> I have not found one type of field that it allow store xml and to do
> xpath. So, I have thougth parser all fields of xml file and additionaly add
> a new field with the full xml.
>
> Is there another option?
> thanks
>
--
--------------------------
Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti
"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"
William Blake - Songs of Experience -1794 England
Re: Search over XML data using xpath
Posted by Miguel Valencia Zurera <mi...@juntadeandalucia.es>.
Thanks Alexandre
I didn't knew theese projects, and they could be a solution to my problem.
Thanks again.
El 02/04/2016 a las 1:10, Alexandre Rafalovitch escribió:
> You may be interested in checking out:
> http://luxdb.org/ - seems to be still on Solr 4.x though
> http://siren.solutions/siren/overview/ - I believe they indexed XML
>
> Regards,
> Alex.
> ----
> Newsletter and resources for Solr beginners and intermediates:
> http://www.solr-start.com/
>
>
> On 1 April 2016 at 19:41, Miguel Valencia Zurera
> <mi...@juntadeandalucia.es> wrote:
>> Hi everybody
>>
>> I'm looking for the way to store XML file and keep on hierarchy of the data
>> because I need show full xml and besides to search inside of nodes of xml.
>> Only I have found XPathEntityProcessor for import xml but it does not keep
>> on the hierarchy of the data.
>>
>> I have not found one type of field that it allow store xml and to do xpath.
>> So, I have thougth parser all fields of xml file and additionaly add a new
>> field with the full xml.
>>
>> Is there another option?
>> thanks
Re: Search over XML data using xpath
Posted by Alexandre Rafalovitch <ar...@gmail.com>.
You may be interested in checking out:
http://luxdb.org/ - seems to be still on Solr 4.x though
http://siren.solutions/siren/overview/ - I believe they indexed XML
Regards,
Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/
On 1 April 2016 at 19:41, Miguel Valencia Zurera
<mi...@juntadeandalucia.es> wrote:
> Hi everybody
>
> I'm looking for the way to store XML file and keep on hierarchy of the data
> because I need show full xml and besides to search inside of nodes of xml.
> Only I have found XPathEntityProcessor for import xml but it does not keep
> on the hierarchy of the data.
>
> I have not found one type of field that it allow store xml and to do xpath.
> So, I have thougth parser all fields of xml file and additionaly add a new
> field with the full xml.
>
> Is there another option?
> thanks