Spring Data Solr

org.springframework.data.solr.repository
Annotation Type Highlight


@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
public @interface Highlight

Author:
Christoph Strobl

Optional Element Summary
 String[] fields
          Fieldnames to be used for hl.fl.
 String formatter
          set hl.formatter
 int fragsize
          sets hl.fragsize
 String postfix
          set hl.simple.post in case formatter not set or 'simple' otherwise hl.tag.post
 String prefix
          set hl.simple.pre in case formatter not set or 'simple' otherwise hl.tag.pre
 String query
          Query to be used for hl.q
 int snipplets
          set hl.snipplets
 

fields

public abstract String[] fields
Fieldnames to be used for hl.fl.

Returns:
Default:
{}

query

public abstract String query
Query to be used for hl.q

Returns:
Default:
""

fragsize

public abstract int fragsize
sets hl.fragsize

Returns:
Default:
-1

snipplets

public abstract int snipplets
set hl.snipplets

Returns:
Default:
-1

formatter

public abstract String formatter
set hl.formatter

Returns:
Default:
""

prefix

public abstract String prefix
set hl.simple.pre in case formatter not set or 'simple' otherwise hl.tag.pre

Returns:
Default:
""

postfix

public abstract String postfix
set hl.simple.post in case formatter not set or 'simple' otherwise hl.tag.post

Returns:
Default:
""

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.