Hello, I have customized my Solr results so that they display only 3 fields: the document ID, name and last_modified date. The results are in JSON.
This is a sample of my Javascript function to execute the query: //////////////////////////////////////////////// var query = ""; //set user input to query query = window.document.box.input.value; //solr URL var sol = " http://localhost:8983/solr/gettingstarted_shard1_replica1/select?q="; var sol2 = "&wt=json&fl=title,id,category,last_modified&rows=10000000&indent=true"; //redirect window.location.href = sol+query+sol2; ////////////////////////////////////////////////////// The output example would look like: { "id":"/solr/docs/ISO/Employee Benefits Information/BCN.doc", "title":["BCN Auto Policy Verbiage:"], "last_modified":["2014-01-07T15:19:00Z"]}, I want to format my Solr results so that the document ID will be displayed as a link that users can click on and load the BCN.doc file. Any tips on how to do this? I am a stuck. All help is appreciated! Thanks, T