I have found some posts related to search on XML but those were not helpful for my task.
My task is to implement a search.
Source: 5-6 XML files like People,Buildings,News etc (each category being an XML file I have 30000 Entries totally).
User can select a category and type some keyword. The search phrase should search the XML file and return results are to presented on a html page. If user doesn’t select a category all XML files should be searched.
Please tell me best strategy/Algorithm to implement this and best technology.
Transform your XML documents (using XSL) and upload them (HTTP post) to an instance of Solr. You’ll then be able to perform a range of search operations on the indexed data.
The Solr Wiki is unavailable currently, but here’s an example of it’s support XML format: