80873

How to add data to the solr's schema

Question:

I try to add new data to the solandra according to the solr's schema but I can't find any example about this. My ultimate goal is to integrate solandra with django-solr.

What I understand about the insert and updating in the solr based on the original solr and django-solr is to send the new data on the http protocol to the decent path, for example:

http://localhost:8983/solandra/wikipedia/update/json

However, when I access the url, the browser keep telling me HTTP ERROR: 404.

Can you help me understand the step to add new data and delete the data in the solandra environment?

I also have a look at the reuters-demo, but the procedure to insert data is process in the file of reutersimporter.jar, but I can't see the source as well. So Please help me to understand how the system work in terms of data inserting and deleting.

Thank you.

Answer1:

Since you are using the JSON update handler, this <a href="http://wiki.apache.org/solr/UpdateJSON" rel="nofollow">UpdateJSON</a> page on the <a href="http://wiki.apache.org/solr/" rel="nofollow">Solr Wiki</a> has some good examples of inserting data using the JSON handler via curl. Also, the <a href="http://lucene.apache.org/solr/tutorial.html#Indexing+Data" rel="nofollow">Indexing Data</a> section of the <a href="http://lucene.apache.org/solr/tutorial.html" rel="nofollow">Solr Tutorial</a> shows how you can insert data using the post.jar file that is included with the Solr source.

Answer2:

Are you creating the solr schema.xml and solrconfig.xml and posting it to solandra? If you add the JSON handler then this should work. The reutersdemo uses solrj. django-solr should work as well.

Recommend

  • where is memory allocated for pointers and their data?
  • Checking metadata of Amazon S3 file using iOS AWS SDK in Swift
  • Extract text from “” HTML tag
  • K Shortest Path Python Not Working
  • What does the “?” mean in the following statement
  • How do you compute the XOR Remainder used in CRC?
  • eC (Ecere) how to not worry about private data fields of a class
  • matlab/octave random event ode45
  • PHP: Get HTTP Protocol Version (HTTP/1.1 vs HTTP/2)
  • Edit assembly language code in Visual Studio while stepping through each statement
  • UIImagePickerControllerDelegate Methods Not Called When Delegate Not UIViewController
  • Spring Batch restart uncompleted jobs from the same execution and step
  • Netezza Incremental load from Sql server using SSIS
  • Base64 as method of sanitizing user input for Mysql
  • Ruby: FileUtils.cp truncates file; FileUtils.mv it does not?
  • How to create a Unix-domain socket with specific access permissions
  • mave 3.2 not able to access local nexus instance return 502 code
  • hibernate sets dirty flag (and issues update) even though client did not change value
  • VBA Excel, loop through variables
  • chrome video src change not working
  • Tomcat memory Leak
  • Debugging VB6 Code From Visual Studio 2010
  • Diff between two dataframes in pandas
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Cannot resolve symbol 'MyApi'
  • How to add a column to a Pandas dataframe made of arrays of the n-preceding values of another column
  • ILMerge & Keep Assembly Name
  • Symfony2: How to get request parameter
  • Apache 2.4 - remove | delete | uninstall
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • retrieve vertices with no linked edge in arangodb
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • Unit Testing MVC Web Application in Visual Studio and Problem with QTAgent
  • AngularJs get employee from factory
  • Benchmarking RAM performance - UWP and C#
  • How to set the response of a form post action to a iframe source?
  • Understanding cpu registers
  • Change div Background jquery
  • Add sale price programmatically to product variations