Index pdf file content using Apache Solr
I'm using Solr's php extension for interacting with Apache Solr. I'm indexing data from the database. I wanted to index contents of external files (like PDFs, PPTX) as well. The logic for indexing is: Suppose the schema.xml has the following fields defined: <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> <field name="created" type="tlong" indexed="true" stored="true" /> <field name="name" type="text_general" indexed="true" stored="true"/> <field name="filepath" type="text_general" indexed="false" stored="true"/> <field name="filecontent" type=