Java 1.4.x or greater.
ANT 1.6.3 or greater.
Category Archives: Apache
Requirements for running a Solr server
It requires Java 1.5 and an Application server (Tomcat) that supports the Servlet 2.4 standard.
Some data doesn’t show up after posting – apache solr
Data that have been added to the index don’t show up in search results until a commit is done.
You can post a <commit/> message to the XML update handler.
How to delete complete data in apache solr
Use the “match all docs” query in a delete by query command: <delete><query>*:*</query></delete>
Features Apache Lucene
Ranked Searching
Flexible Queries
Field-specific Queries
Sorting
Apache Lucene
Apache Lucene is a high-performance, fullfeatured text search engine library written entirely in Java
Apache Lucene is a free/open source information retrieval software library, originally created in Java by Doug Cutting. It is supported by the Apache Software Foundation and is released under the Apache Software License.
Lucene has been ported to other programming languages including PHP.
In Lucene, everything is a Document. A Lucene Document need notrefer to an actual file on a disk, it could also resemble a row in a
relational database.
Each developer is responsible for turning their own data sets intoLucene Documents. Lucene comes with a number of 3rd party
contributions, including examples for parsing structured data files suchas XML documents and Word files.
Command to start apache solr
Run the below given command
java -jar start.jar
This can be used for restarting Apache solr as well .
Delete data from apache solr
java -Ddata=args -Dcommit=no -jar post.jar “<delete><id>SP2514N</id></delete>”
Add data to apache solr
You can add data using the below given command
java -jar post.jar data.xml
Make sure that you have changed the directory where post.jar and xml files are available from the shell.