Skip to content

Commit

Permalink
Merge pull request SolrNet#199 from xaviermorera/patch-5
Browse files Browse the repository at this point in the history
Additional parameters for highlighting
  • Loading branch information
mausch committed May 19, 2015
2 parents be21bac + ccba187 commit 1060f11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Documentation/Highlighting.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ would print for example:
features: <em>Noise</em>Guard, SilentSeek technology, Fluid Dynamic Bearing (FDB) motor
```

If you need to specify additional parameters, for example the snippet size for a specific field, it is necessary to do so using ExtraParams which then are added to the QueryOptions object of your query.
```
Dictionary<string, string> extraParams = new Dictionary<string, string>();
extraParams.Add("f.features.hl.fragsize", "250");
```

The results object will include:
- A Highlights property which is an IDictionary<string, SolrNet.Impl.HighlightedSnippets>.
- The string corresponds to the document uniquekey
Expand Down

0 comments on commit 1060f11

Please sign in to comment.