Re: Preserve XML hierarchy

2011-08-25 Thread Erick Erickson
Jars aren't where it's at. You apply patches to *source* code, then compile. Here's a good place to start understanding this process: http://wiki.apache.org/solr/HowToContribute See "getting the code" and "working with patches" I *strongly* advise you to get the code and compile it and run it f

Re: Preserve XML hierarchy

2011-08-25 Thread _snake_
Hi Michael, Thanks for your help! I am using Apache Solr 3.2 on windows. I am trying to apply the 2 patches ( https://issues.apache.org/jira/browse/SOLR-2597?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#issue-tabs XMLCharFilter Patch ), but I have no idea to do that. W

Re: Preserve XML hierarchy

2011-07-26 Thread Michael Sokolov
Here's an idea: if you index the full text of your XML document using XmlCharFilter - available as a patch (or HtmlCharFilter), and then highlight the entire document (you will need to fiddle with highlighter parameters a bit to make sure you get 1 fragment that covers the entire file) with som

Re: Preserve XML hierarchy

2011-07-26 Thread Lucas Miguez
Hi, finally now I have all the field names of each document using the Luke Request Handler (http://wiki.apache.org/solr/LukeRequestHandler) and making HTTP Request to Solr I can get all the fields that contain the word that I am searching. I'll keep looking for a better solution. Thanks! Regards

Re: Preserve XML hierarchy

2011-07-14 Thread Gora Mohanty
On Thu, Jul 14, 2011 at 8:43 PM, Lucas Miguez wrote: > Thanks for your help! > > DIH XPathEntityProcessor helps me to index the XML Files, but, does it > help to me to know from where the node comes? Following the example in > my previous post: > >>> example: Imagine that the user search the word

Re: Preserve XML hierarchy

2011-07-14 Thread Walter Underwood
This will be much easier on an XML database, because that supports XPath natively. For open source, try eXist. For a commercial XML database, try MarkLogic (much, much faster than eXist). wunder Walter Underwood Lead Engineer, MarkLogic www.marklogic.com On Jul 14, 2011, at 12:31 AM, Lucas Mig

Re: Preserve XML hierarchy

2011-07-14 Thread Michael Sokolov
Have a look at http://wiki.apache.org/solr/DataImportHandler#XPathEntityProcessor It might be just what you need? -Mike On 7/14/2011 3:31 AM, Lucas Miguez wrote: Hi, yes, I was asking about it, is it possible to index an XML file? Is it possible to know which node of the XML the search resu

Re: Preserve XML hierarchy

2011-07-14 Thread Lucas Miguez
Hi, yes, I was asking about it, is it possible to index an XML file? Is it possible to know which node of the XML the search result comes from? So I have 2 XML files, the original and the summary. I want to index the summary. So, that is an example of the summary XML: A.

Re: Preserve XML hierarchy

2011-07-13 Thread Gora Mohanty
On Wed, Jul 13, 2011 at 10:30 PM, Lucas Miguez wrote: > Hi, > > is it possible to do that in Apache Solr? If i make a search, how I > know from where it comes the result? [...] Your question is not very clear, and I happen unfortunately to be out of crystal balls and Tarot cards. Is it possible