Question

I am trying to modify "literal.id" to "literal.docId", "literal.aa" and so on. because I want to change the uniqueKey like docId or another name to understand easily. the id is too simple. :D But for this, most documents and web pages I have searched have mentioned "The literal.id={value} param provides the necessary unique id for the document being indexed"

If someone knew how to do it, plz give me some hints, tips or answers.

Thank you.

-Rex-

Was it helpful?

Solution

When you upload a pdf to Solr, it populates Solr with

  1. values extracted by Tika and mapped to Solr fields: content and author_name in the schema are filled like this
  2. values given as parameters: literal.fieldxy gets mapped to fieldxy in Solr schema

In your case, your solr schema uses a field id for uniqueness. Hence the need to specify a literal.id for each upload. If you create a core with a different ID scheme, be sure to include a literal.idfield for each upload.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top