Best way to search data in xml files?

前端 未结 5 1600
青春惊慌失措
青春惊慌失措 2021-01-23 03:42

In our new project we have to provide a search functionality to retrieve data from hundreds of xml files. I have a brief of our current plan below, I would like to know your sug

5条回答
  •  爱一瞬间的悲伤
    2021-01-23 04:00

    Index your XML files. Look into http://incubator.apache.org/lucene.net/

    I recently used it at my previous job to cache our SQL database for fast searching and very little overhead.

    It provides fast searching of content inside xml files (all depending on how you organize your cache).

    Very easy and straight forward to use.

    Much easier than trying to loop through a bunch of files.

提交回复
热议问题