lucene - how do i get all the similar documents without any search terms -


i need develop search application , many documents indexed different fields , id field unique each of document . fields not stored indexed except id field

i need find out each document , documents similar this, here have unique id field of current document , dont have other fields of current document form terms , query index finding similar documents current one.

how do ? appreciated .

i believe simplest way use solr, , use solr's morelikethishandler. can use query likehttp://localhost:8983/solr/select?q=unique_id:2722&mlt=true&mlt.fl=manu,cat&mlt.mindf=1&mlt.mintf=1&fl=id,score


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -