Search flag to get details on how search terms were matched in a document.
The dtsSearchWantHitDetails search flag tells the dtSearch Engine to generate additional information during a search that matches each term to the words retrieved, for each document. This is what the data returned looks like, after a search for "comment~ or writ*".
term
The original search term, as modified by any search features (fuzziness, phonic, etc.)
word
The word matched in the index
count
Number of hits for this word
hits
Word offsets of each hit for this word
field
The name of the field where this word was found. Example:
For ease of parsing, all values in the table will be expressed as something="value" -- no space around the =, the quote always present. There may be additional items added in the future, and the order may change, so calling applications should look for "word=", "term=", etc.
Phrases are not grouped in the hit details report, so the report from a search for apple pie will contain separate items for apple and pie. To get hits listed with phrases grouped (so a single instance of a phrase is a single hit), use the dtsSearchWantHitsByWord flag.
In an unindexed search, only the search terms will be listed, without separate entries for each of the words actually matched in the file.
C++: dtsSearchResultsItem.hitDetails
.NET: SearchResultsItem.HitDetails
Java: SearchResults.getDocDetailItem("_hitDetails")
COM: SearchResults.DocDetails or SearchResults.DocDetailItem("_hitDetails")