简体   繁体   中英

Index directory of files at once not one after another in solr

I have large directory contain set of files, which I need to index in solr 4.10.0 and I don't want to index them one after another as every single indexing of file the index of solr core will be changed. Is there any method to index the whole directory once without the need to combine all these files into a big one file?

Your question is not very clear, regardless of indexing one file at a time or all together there will be changes to the indexes.

Thanks -Hussain

It all depends on your requirement now, I'll just weigh in the pros and cons Indexing files individually, you can search them individually. So lets take an eg Name: File1 Contents: File1

Similarly File2 and File3 Now post indexing if you query SOLR for keyword "file", you'll get three documents.

On the other approach if you combine all the three file and index it as one document, you'll only get one document. It all depends on what you are trying to achieve at the end.

Thanks
-Hussain

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM