Solr邻近搜索

时间:2019-03-20 13:11:59

标签: sorting search solr proximity

我需要根据以下链接实施搜索结果。 https://pastebin.com/abuwJxQp

示例1:

Word1 Word2 Word3


    Doc1 Word1
    Doc2 Word 1 Word3
    Doc3 Word 1 Word2 Word3
    Doc4 Word 2 Word 3
    Doc5 Word2 Word1 Word3


    ------------>
        Doc3
        Doc5
        Doc4
        Doc2
        Doc1`

示例2:     Word1 Word2 Word3         Doc1(标题)Word1 Word2 Word3         Doc2(摘要)Word1 Word3 Word3         Doc3(AuthorName)Word1 Word2 Word3         Doc4(JournalName)Word1 Word2 Word3         Doc5(PublisherName)Word1 Word2 Word3

    ------------>
        Doc1
        Doc2
        ?

示例3:

Word1 Word2 Word3


    Doc1 Word1
    Doc2 Word 1 Word3
    Doc3 Word 1 Word2 Word3
    Doc4 Word 2 Word 3
    Doc5 Word2 Word1 Word3
    Doc6 Word1 Word1 Word1 Word1 Word1 Word1 Word1 Word1 Word1 Word1 Word1 Word1
    Doc7 Word1 Word2 Word1 Word2 Word1 Word2 Word1 Word2 Word1 Word2 Word1 Word2 Word1 Word2 Word1 Word2


    ------------>
        Doc3   
        Doc5
        Doc4
        Doc2
        Doc6?
        Doc1

1 个答案:

答案 0 :(得分:0)

您可能希望研究“距离”测量方法-请参阅此问题的答案Edit Distance Similarity in Lucene/Solr