move query and query_from_file to Searcher base class
rename query_from_file in each subclass into internal class _query_from_file, which requires another extra parameter config, which should be provided either by query_from_file (use self.config) or query (where default config can be modified by users)
query
andquery_from_file
to Searcher base classquery_from_file
in each subclass into internal class_query_from_file
, which requires another extra parameterconfig
, which should be provided either byquery_from_file
(use self.config) orquery
(where default config can be modified by users)