1

I have an existing field "Link_URL" in SDL Tridion schema. Now I added this field in solr "schema.xml" for indexing. But It doesn't show up in the solr response.

I restarted Solr, TRIDION. But it does not work. Can someone tell me what part of the configuration am I missing or please provide the steps.

1
  • Welcome to Tridion stack exchange. Can you please share your schema.xml entry for the Link_URL and also share the version of the Tridion .
    – Anand N S
    Apr 28, 2021 at 15:58

1 Answer 1

3

Please refer to the link on how to add a custom field on solr and implement Search Indexing Handler and add it to the content manager configuration.

In your case

<field name="Link_URL_dyn_s_str" type="text" indexed="true" stored="false"/>

Not sure what is your requirement to add the field Link_URL to solr, you can save the search folder mentioned in the document and get the records

If you want to search index to have the data of new field, you need to remove the existing collection and create a new collection , example

stop the search indexer and search host service , go to the tridion install folder / Search/solr-data/tridion ( rename the folder) and start the service again to generate new search collection and try to run the search folder again on CMS to view the results.

9
  • A very timely question, Anand!
    – Neil
    Apr 29, 2021 at 10:19
  • Yes Neil I agree
    – Anand N S
    Apr 29, 2021 at 10:21
  • yes when you access servername:8983/#/tridion/query and select wt option ( xml or json) you can ( access the URL using ) server:8983/tridion/select?q=*%3A*&wt=json&indent=true , Not sure you are asking question or you are saying you are able to see the data , please clarify
    – Anand N S
    Apr 29, 2021 at 13:01
  • Thanks. Let me explain clearly. We have Tridion in one server(A) and Solr in another server(B). If we publish a page in Tridion, those data are passed to Solr. If we hit Solr query in browser(http://<ipaddress>/select?<querystrings> ), we can see those data in JSON format. My need is , I added a new field in the Tridion page then published it. In Solr side, in schema.xml I added the new field. I restarted Solr service, tridion search indexer and search host service. Still I am not getting the new field in Solr search output. What configuration part I am missing?
    – user4523
    Apr 29, 2021 at 13:06
  • refer to this link m when you add a new field , you need to extend the SearchIndexer and perform re-index by removing old collection and generate new collection so the value of the field that you have gets added to the the search collection, you need to implement the handler to achieve this.
    – Anand N S
    Apr 29, 2021 at 13:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.