Blame view

config/__init__.py 1.03 KB
be52af70   tangwang   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  """Configuration package initialization."""
  
  from .field_types import (
      FieldType,
      AnalyzerType,
      SimilarityType,
      FieldConfig,
      get_es_mapping_for_field,
      get_default_analyzers,
      get_default_similarity,
      FIELD_TYPE_MAP,
      ANALYZER_MAP
  )
  
  from .config_loader import (
      ConfigLoader,
9cb7528e   tangwang   店匠体系数据的搜索:mock da...
17
      SearchConfig,
be52af70   tangwang   first commit
18
19
20
21
      IndexConfig,
      RankingConfig,
      QueryConfig,
      SPUConfig,
a00c3672   tangwang   feat: Function Sc...
22
23
      FunctionScoreConfig,
      RerankConfig,
be52af70   tangwang   first commit
24
25
      ConfigurationError
  )
9f96d6f3   tangwang   短query不用语义搜索
26
27
28
29
  from .utils import (
      get_match_fields_for_index,
      get_domain_fields
  )
be52af70   tangwang   first commit
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  
  __all__ = [
      # Field types
      'FieldType',
      'AnalyzerType',
      'SimilarityType',
      'FieldConfig',
      'get_es_mapping_for_field',
      'get_default_analyzers',
      'get_default_similarity',
      'FIELD_TYPE_MAP',
      'ANALYZER_MAP',
  
      # Config loader
      'ConfigLoader',
9cb7528e   tangwang   店匠体系数据的搜索:mock da...
45
      'SearchConfig',
be52af70   tangwang   first commit
46
47
48
49
      'IndexConfig',
      'RankingConfig',
      'QueryConfig',
      'SPUConfig',
a00c3672   tangwang   feat: Function Sc...
50
51
      'FunctionScoreConfig',
      'RerankConfig',
be52af70   tangwang   first commit
52
      'ConfigurationError',
9f96d6f3   tangwang   短query不用语义搜索
53
54
      'get_match_fields_for_index',
      'get_domain_fields',
be52af70   tangwang   first commit
55
  ]