All,
I am having trouble with a “more like this” query in Solr. Here’s what I think should be happening: 1. Query contains Document ID (q=id:"942316176:9009:66 <http://10.157.117.55:10001/solr/BPS/select?=&debug=true&indent=on&mlt.fl=surnames,genders,givennames,birthlocations,deathlocations&mlt=true&q=id:%22942316176:9009:66%22&wt=json> ”) 2. I add the following (on the solr admin page, raw query parameters field) &mlt=true&mlt.fl=field1,field2,field3 3. More Like This will take the Document ID, look at the fields (field1, field2, field3) and return a list of documents that have the best match to the contents of those fields in “document Id” What is happening is that I’m getting only one result and it is the same document id as the one I sent in on the query. What I expected was a list of Doc ID’s for documents that have some kind of match to the submitted Doc ID. Any thoughts or advice would be appreciated. =================== Here is an example of the query URL: http://XX.XXX.XXX.XX:10001/solr/BPS/select?=&debug=true&indent=on&mlt.fl=field1,field2,field3&mlt=true&q=id:%22942316176:9009:66%22&wt=json However, when I submit the query, I get only one document ID returned - the same one I submitted in the first place. Here is the important section of the response: { "*responseHeader*":{ "*zkConnected*":true, "*status*":0, "*QTime*":26, "*params*":{ "*q*":"id:\"942316176:9009:66\"", "*debug*":"true", "*mlt*":"true", "*indent*":"on", "*mlt.fl*”:”field1,field2,field3", "*wt*":"json", "*_*":"1539881180264"}}, "*response*":{"*numFound*":1,"*start*":0,"*maxScore*":1.0,"*docs*":[ { "*id*":"942316176:9009:66", "*_version_*":1611920924010872837}] }, "*moreLikeThis*":[ "942316176:9009:66",{"*numFound*":0,"*start*":0,"*docs*":[] }], "*debug*":{