You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q1: Do we need a new individual handler. Otherwise we have to change the default behavior of the query handler. A1: We decided to use the original query handler with a customized ESQueryBuilder. The new query builder will keep its default behavior if we don't pass in overriding arguments, i.e. operator, analyzer, and minimum_should_match so far
Q2: Related to Q1, determine if we need a customized structure of response. A2: TBD
Q3: Does the sorting work as expected? A3: See the ES explain section below
Q4: How to boost on the number of matched should matches? A4: TBD
The text was updated successfully, but these errors were encountered:
Brief
Requirement discussion:
From @newgene:
Request structure:
How to implement
Keys:
class PfocrQueryBuilder(ESQueryBuilder)
that subclassesbiothings.web.query.ESQueryBuilder
from biothings.apiPfocrQueryBuilder
inconfig_web/pfocr.py
minimum_should_match
parameter (for POST queries only, for now) inconfig_web/pfocr.py
Reference implementation:
Future Work
Q1: Do we need a new individual handler. Otherwise we have to change the default behavior of the
query
handler.A1: We decided to use the original
query
handler with a customizedESQueryBuilder
. The new query builder will keep its default behavior if we don't pass in overriding arguments, i.e.operator
,analyzer
, andminimum_should_match
so farQ2: Related to Q1, determine if we need a customized structure of response.
A2: TBD
Q3: Does the sorting work as expected?
A3: See the ES
explain
section belowQ4: How to boost on the number of matched
should
matches?A4: TBD
The text was updated successfully, but these errors were encountered: