Is there a way to add username/password parameters to the following solr update command?
...........jdk7x64\bin\java -jar -Durl=http://localhost:8983/solr/collection1/update post.jar test_data.xml
Or is there any other way to post files to a Solr which is password protected?
Can you try below command, Hope this will help.
jdk7x64\bin\java -jar -Durl=http://username:password#localhost:8983/solr/collection1/update post.jar test_data.xml
Adding the username:password in the url just before the hostname.
According to Solr Issue, it is available from Solr 4.8.
Related
For posting a XML document I used the below command
java -Durl=http://localhost:8983/solr/Hanu_Core/update -jar .\post.jar .\money.xml
By looking at your title, I assume, you maybe asking for "Commands" to post pdf using SimplePostTool.
In the CLI you can type as below to check all the available properties and options.
$ java -jar example/exampledocs/post.jar -h
Moreover, you may follow like the example as below
java -Durl=http://localhost:8983/solr/pdfs/update/extract -Dcommit=yes -Dtype=application/pdf -jar exampledocs/post.jar ~/solr-4.10.3/solr-app/solr_home/pdfs/pdfs_res/Apache_Solr.pdf
I hope this solves your problem.
As #Anis Suggested You can use -Dtype=application/pdf. can also use -Dauto
Example :
java -Dauto -Dc=collection_name -jar post.jar pdf_file.pdf
Using -Dauto we can index all document format that tika supports.
i.e txt,doc,docx,pdf,xml,html etc.
For more details hit help command
java -jar post.jar -h
I am new to Apache Solr. I am going by the following tutorial -https://examples.javacodegeeks.com/enterprise-java/apache-solr/apache-solr-tutorial-beginners/
While I am able to index my books.csv on my local machine, but I am getting following issue on my virtual machine- Unable to access jarfile post.jar
I am using Solr 6.3.0 and java 1.8
Please help !!
Your java command is not able to find post.jar in bin directory.
by default post.jar is present in {solr_home}\example\exampledocs directory of solr
you can try giving following path for post.jar
-jar ../example/exampledocs/post.jar
Complete command as per your directory structure.
solr-6.0.0\bin>java -Dtype=text/csv -Durl=http://localhost:8983/solr/jcg/update -jar ../example/exampledocs/post.jar books.csv
Sometimes there is an issue reading the path of the post.jar file.
In the tutorial it says the command is: java -jar /exampledocs/post.jar /films/films.xml
Instead,
Give the full path:
java -jar C:\Program Files\solr-8.6.1\example\films\post.jar films.xml
This worked for me
Try to add the path of post.jar to your solrconfig.xml file so that the core or collection can know where it is present.
I have solr-4.10.3 installed in my Ubuntu server, I have forgot the URL and port.
Where can I find this infos in my Solr config files ?
Thanks for help.
The admin UI should be accessible at
http://localhost:8983/solr
Default port: 8983
To change a port
java -Djetty.port=9999 -jar start.jar
For solr 5.4.1 for example
solr-5.4.1\bin\solr start -p XXXX
Please visit https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production for more information.
Go inside your Solr directory. Navigate to example folder,As per your Solr insatance it will be like solr-4.10.3/example/
then start your Solr instance from Ubuntu terminal using command
java -jar start.jar
Open browser and hit URL
http://localhost:8983/solr
Hi I am creating a search engine for a website using nutch and solr but i am unable to execute bin/nutch(command) in my command prompt. can i execute it in command prompt or should i use cygwin?
I am using solr 3.6.2 and nutch 1.7, pls provide me solution as soon as possibe
Use cygwin, heres an excellent guide to set them up together:
http://amac4.blogspot.com/2013/07/setting-up-solr-with-apache-tomcat-be.html
I try to run solr in schemaless mode on a windows machine, like it is described here. But if I run the command
java -Dsolr.solr.home=example-schemaless\solr -jar start.jar
I get the error:
Could not find or load main class .solr.home=example-schemaless.solr
check the path of your start.jar file. Make the correct path to start.jar file and set the solr home correctly, that may be fix your issue.