[Xapian-tickets] [Xapian] #815: Omega: different search results in template query with regard to templates topterms, xml, opensearch.
Xapian
nobody at xapian.org
Fri Sep 17 21:46:02 BST 2021
#815: Omega: different search results in template query with regard to templates
topterms, xml, opensearch.
----------------------+-------------------------------
Reporter: Gennadiy | Owner: Olly Betts
Type: defect | Status: assigned
Priority: normal | Milestone: 1.4.19
Component: Omega | Version: 1.4.18
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: Linux
----------------------+-------------------------------
Changes (by Olly Betts):
* status: new => assigned
* milestone: => 1.4.19
Comment:
The `topterms` template is just a thin wrapper around the `query` one:
{{{
$set{topterms,$or{$query,$ne{$msize,0}}}$include{query}
}}}
The problem here is that checking `$msize` forces the query to be parsed
and the match run, and that means that some things set up in the `query`
template (the term prefixes at least) end up ignored because they're now
set too late to make a difference.
I think we probably need to move at least the `$msize` check into the
query template.
The issue with `opensearch` and `xml` is that they don't have the code to
set up the term prefixes. So they're only searching the body of
documents, whereas the `query` template searches title and topic too. It
would be more consistent for them to default to the same fields.
--
Ticket URL: <https://trac.xapian.org/ticket/815#comment:1>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list