Hello comunity! ;)
I'm building a web search application (rich application) that is intended to search over some historical documents. Those documents have their own structure. I'm using lucene 3.x to build the search engine, etc.
So far i have built my own Analyzer and a SimpleToken class to fit my needs. So what is the problem?
The problem is that i have three diferent files representing the same Document. One file is the original document,plain text without any markup. The other two are XML marked documents, one represents topographic structure of the document (so it's the original document plus tags to represent itself's structure) and the other represents numbering and columns of the document (once again, the original document plus tags to split the text into pages and columns). It is extremely difficult and confusing to merge those two XML documents into one, the files are really big (over 50.000 lines). The thing is that i really need the information of both xml documents..
Having that said, what do you think is the best approach to index all the stuff? I'm not experienced with lucene, actually it's my first time working around it. First i have to know how i'm going to get the text from the documents (maybe some XML Parser?), and how i'm going to merge the information of the marked documents. Do you think i should create two indexes, one for each marked document and then somehow merge those indexes? i realy need some orientation.
Any help whould be appreciated ;)
Thank You!