I have two text files, call them A.txt and B.txt. Both A.txt and B.txt have 3 fields. But the semantics are different. Let's name these fields as follows:
A.txt : f1, f2, f3
B.txt : f1, f2, f4
A.txt and B.txt have same values for f1 and f2, but have a different third field.
I would like to import these files into Solr (I'm using Solr 4.5). But the caveat is that corresponding entries from A.txt and B.txt should have to combined into one single document. So for example, if we have:
A.txt
1,50,foo
51,100,bar
B.txt
1,50,xkcd
51,100,qc
After dataimport has happened, there should be 2 documents in Solr:
1,50,foo,xkcd
51,100,bar,qc
If the documents were stored in SQL databases, it would be a simple join query. But since the docs are stored as lines in a CSV file, and I am using LineEntityProcessor with a transformer function to do the dataimport, is there a way of accomplishing this task?