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.valen...@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

Reply via email to