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 );}