Method CreateWeight
CreateWeight(Query)
Create weight in multiple index scenario.
Distributed query processing is done in the following steps:
- rewrite query
- extract necessary terms
- collect dfs for these terms from the Searchables
- create query weight using aggregate dfs.
- distribute that weight to Searchables
- merge results
Steps 1-4 are done here, 5+6 in the search() methods
Declaration
public override Weight CreateWeight(Query original)
Parameters
Type | Name | Description |
---|---|---|
Query | original |
Returns
Type | Description |
---|---|
Weight | rewritten queries |