setHighlighterPostTags sets pre tags instead of post, closes #386.

This commit is contained in:
kimchy 2010-09-25 00:01:14 +02:00
parent ab9aa15bb4
commit 2288c5d670
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ public class SearchRequestBuilder extends BaseRequestBuilder<SearchRequest, Sear
* Explicitly set the post tags that will be used for highlighting.
*/
public SearchRequestBuilder setHighlighterPostTags(String... postTags) {
highlightBuilder().preTags(postTags);
highlightBuilder().postTags(postTags);
return this;
}