Uploaded image for project: 'SWORD'
  1. SWORD
  2. API-149

Allow fuzzy search results to be ordered by relevance

    Details

    • Type: New Feature
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.91
    • Fix Version/s: None
    • Component/s: core
    • Labels:
    • Environment:

      All

      Description

      Clucene and SWORD allow for fuzzy searching, which comes in handy when you don't know how to spell Nebuchadnezzar. But currently, SWORD does not allow reporting search results in order of relevance, which is important for fuzzy searches. Ordering by relevance usually puts the desired verses right at the top, rather than having to search through pages of unrelevant results looking for the right ones.

      This only takes a single line of code to implement. For instance, xulsword has been doing it this way in swmodule.cpp, SWModule::search, line 513 becomes:

      if ((flags & 2048) == 2048)

      {h = is->search(q,lucene::search::Sort::RELEVANCE );}

      else

      {h = is->search(q,lucene::search::Sort::INDEXORDER );}

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              johnaustin John Austin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: