searching content stored in xml using Lucence

Events happening in the community are now at Drupal community events on www.drupal.org.
t14's picture

Hi

I want to implement the lucence search module into my Drupal site.

However, I have a custom module that I developed myself which pulls content from an xml file and displays it using xslt.

I was wondering if it is possible to use the Lucence search module to offer search capabilities for my xml content.

The xml content is stored in files on the server and not in a database.

Is it possible to search xml content with the Lucence module or its API?

I am also interested in any other solutions for searching xml content.

Thank you in advance for your time.

Comments

how about using the node import module?

scotjam's picture

If you wanted to get the xml content searchable, how about adding the content of the xml into the description field of nodes? Just an idea.

Alternatively, could you use the new nutch module? It might not exactly fit, but the concept is that it can crawl content from elsewhere and inject that content into search.

Hope this helps
scotjam

Hi I have finally found

t14's picture

Hi

I have finally found somtitme to solve this problem,

I am considering your first option "adding the content of the xml into the description field of nodes".

The only issue I am having with this now is how to keep the content in the node fields up-to-date because all of the information will be edited in the original xml, it will be preferable to avoid having to update the information in two places.

Also on a slight tangential, if I have cutom database table created for a custom module, is there a way to get the information in this table indexed for Drupals search or another search module.

Thanks for your help

Thanks for your reply. I will

t14's picture

Thanks for your reply.

I will look into both of your suggestions and post my results here.

or table_wizard module

ddorian's picture

or table_wizard module

Lucene, Nutch and Solr

Group organizers

Group categories

Projects

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week