Method HighlightFieldsAsObjects
HighlightFieldsAsObjects(String[], Query, IndexSearcher, Int32[], Int32[])
Expert: highlights the top-N passages from multiple fields,
for the provided int[] docids, to custom object as
returned by the PassageFormatter. Use
this API to render to something other than
Declaration
protected virtual IDictionary<string, object[]> HighlightFieldsAsObjects(string[] fieldsIn, Query query, IndexSearcher searcher, int[] docidsIn, int[] maxPassagesIn)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | fieldsIn | field names to highlight. Must have a stored string value and also be indexed with offsets. |
Query | query | query to highlight. |
IndexSearcher | searcher | searcher that was previously used to execute the query. |
System.Int32[] | docidsIn | containing the document IDs to highlight. |
System.Int32[] | maxPassagesIn | The maximum number of top-N ranked passages per-field used to form the highlighted snippets. |
Returns
Type | Description |
---|---|
IDictionary<System.String, System.Object[]> |
|