> Hi, > I would like to solr to return to record from > /exampledocs/hd.xml when I > search for the value "6H500F0" (which is the ID field for > the 2'nd record in > that file). > I know there is a setting that I should change to get this > done, but I can't > locate it. > Field name ID is alread included in schema.xml file.
If you want to retrieve the document with ID=6H500F0, use id:6H500F0 as query. If you don't explicitly specify field name in your query defaultSearchField (which is defined in schema.xml) is used/queried. http://localhost:8983/solr/select/?q=id%3A6H500F0&version=2.2&start=0&rows=10&indent=on