C# 클래스 Rubber.DSL.SearchBuilder

A search source builder allowing to easily build search source. Simple construction using {@link org.elasticsearch.search.builder.SearchSourceBuilder#searchSource()}.
상속: IJsonSerializable
파일 보기 프로젝트 열기: stephenpope/Rubber 1 사용 예제들

공개 메소드들

메소드 설명
Builder ( ) : SearchBuilder

A static factory method to construct a new search builder.

Explain ( bool explain ) : SearchBuilder

Should each {@link org.elasticsearch.search.SearchHit} be returned with an explanation of the hit (ranking).

Facet ( AbstractFacetBuilder facet ) : SearchBuilder

Add a facet to perform as part of the search.

Facets ( byte facetsBinary ) : SearchBuilder

Sets raw (json) facets.

Facets ( byte facetsBinary, int facetBinaryOffset, int facetBinaryLength ) : SearchBuilder

Sets raw (json) facets.

Field ( string field ) : SearchBuilder

Adds a field to load and return (note, it must be stored) as part of the search request. If none are specified, the source of the document will be return.

Fields ( ) : SearchBuilder

Sets the fields to load and return as part of the search request. If none are specified, the source of the document will be returned.

Fields ( List fields ) : SearchBuilder

Sets the fields to load and return as part of the search request. If none are specified, the source of the document will be returned.

Filter ( IFilterBuilder filter ) : SearchBuilder
Filter ( byte filter ) : SearchBuilder

Sets a filter on the query executed that only applies to the search query (and not facets for example).

Filter ( byte filterBinary, int filterBinaryOffset, int filterBinaryLength ) : SearchBuilder

Sets a filter on the query executed that only applies to the search query (and not facets for example).

Filter ( string filterString ) : SearchBuilder

Sets a filter on the query executed that only applies to the search query (and not facets for example).

From ( int from ) : SearchBuilder

From index to start the search from. Defaults to 0.

Highlight ( ) : HighlightBuilder

A static factory method to construct new search highlights.

Highlight ( HighlightBuilder highlight ) : SearchBuilder

Adds highlight to perform as part of the search.

Highlighter ( ) : HighlightBuilder

IndexBoost ( string index, float indexBoost ) : SearchBuilder

Sets the boost a specific index will receive when the query is executeed against it.

MinScore ( float minScore ) : SearchBuilder

Sets the minimum score below which docs will be filtered out.

NoFields ( ) : SearchBuilder

Sets no fields to be loaded, resulting in only id and type to be returned per field.

Query ( IQueryBuilder query ) : SearchBuilder

Constructs a new search source builder with a search query.

Query ( byte queryBinary ) : SearchBuilder

Constructs a new search source builder with a raw search query.

Query ( byte queryBinary, int queryBinaryOffset, int queryBinaryLength ) : SearchBuilder

Constructs a new search source builder with a raw search query.

Query ( string queryString ) : SearchBuilder

Constructs a new search source builder with a raw search query.

ScriptField ( string name, string script ) : SearchBuilder

Adds a script field under the given name with the provided script.

ScriptField ( string name, string script, object>.Dictionary @params ) : SearchBuilder

Adds a script field.

ScriptField ( string name, string lang, string script, object>.Dictionary @params ) : SearchBuilder

Adds a script field.

SearchSource ( ) : SearchBuilder

A static factory method to construct a new search source.

Size ( int size ) : SearchBuilder

The number of search hits to return. Defaults to 10.

Sort ( ISortBuilder sort ) : SearchBuilder

Adds a sort builder.

Sort ( string name ) : SearchBuilder

Add a sort against the given field name.

Sort ( string name, SortOrder order ) : SearchBuilder

Adds a sort against the given field name and the sort ordering.

Stats ( ) : SearchBuilder

The stats groups this request will be aggregated under.

ToJsonObject ( ) : object
ToString ( ) : string
TrackScores ( bool trackScores ) : SearchBuilder

Applies when sorting, and controls if scores will be tracked as well. Defaults to false.

Version ( bool version ) : SearchBuilder

Should each {@link org.elasticsearch.search.SearchHit} be returned with a version associated with it.

메소드 상세

Builder() 공개 정적인 메소드

A static factory method to construct a new search builder.
public static Builder ( ) : SearchBuilder
리턴 SearchBuilder

Explain() 공개 메소드

Should each {@link org.elasticsearch.search.SearchHit} be returned with an explanation of the hit (ranking).
public Explain ( bool explain ) : SearchBuilder
explain bool
리턴 SearchBuilder

Facet() 공개 메소드

Add a facet to perform as part of the search.
public Facet ( AbstractFacetBuilder facet ) : SearchBuilder
facet Rubber.DSL.Facet.AbstractFacetBuilder
리턴 SearchBuilder

Facets() 공개 메소드

Sets raw (json) facets.
public Facets ( byte facetsBinary ) : SearchBuilder
facetsBinary byte
리턴 SearchBuilder

Facets() 공개 메소드

Sets raw (json) facets.
public Facets ( byte facetsBinary, int facetBinaryOffset, int facetBinaryLength ) : SearchBuilder
facetsBinary byte
facetBinaryOffset int
facetBinaryLength int
리턴 SearchBuilder

Field() 공개 메소드

Adds a field to load and return (note, it must be stored) as part of the search request. If none are specified, the source of the document will be return.
public Field ( string field ) : SearchBuilder
field string
리턴 SearchBuilder

Fields() 공개 메소드

Sets the fields to load and return as part of the search request. If none are specified, the source of the document will be returned.
public Fields ( ) : SearchBuilder
리턴 SearchBuilder

Fields() 공개 메소드

Sets the fields to load and return as part of the search request. If none are specified, the source of the document will be returned.
public Fields ( List fields ) : SearchBuilder
fields List
리턴 SearchBuilder

Filter() 공개 메소드

public Filter ( IFilterBuilder filter ) : SearchBuilder
filter IFilterBuilder
리턴 SearchBuilder

Filter() 공개 메소드

Sets a filter on the query executed that only applies to the search query (and not facets for example).
public Filter ( byte filter ) : SearchBuilder
filter byte
리턴 SearchBuilder

Filter() 공개 메소드

Sets a filter on the query executed that only applies to the search query (and not facets for example).
public Filter ( byte filterBinary, int filterBinaryOffset, int filterBinaryLength ) : SearchBuilder
filterBinary byte
filterBinaryOffset int
filterBinaryLength int
리턴 SearchBuilder

Filter() 공개 메소드

Sets a filter on the query executed that only applies to the search query (and not facets for example).
public Filter ( string filterString ) : SearchBuilder
filterString string
리턴 SearchBuilder

From() 공개 메소드

From index to start the search from. Defaults to 0.
public From ( int from ) : SearchBuilder
from int
리턴 SearchBuilder

Highlight() 공개 정적인 메소드

A static factory method to construct new search highlights.
public static Highlight ( ) : HighlightBuilder
리턴 HighlightBuilder

Highlight() 공개 메소드

Adds highlight to perform as part of the search.
public Highlight ( HighlightBuilder highlight ) : SearchBuilder
highlight HighlightBuilder
리턴 SearchBuilder

Highlighter() 공개 메소드

public Highlighter ( ) : HighlightBuilder
리턴 HighlightBuilder

IndexBoost() 공개 메소드

Sets the boost a specific index will receive when the query is executeed against it.
public IndexBoost ( string index, float indexBoost ) : SearchBuilder
index string The index to apply the boost against
indexBoost float The boost to apply to the index
리턴 SearchBuilder

MinScore() 공개 메소드

Sets the minimum score below which docs will be filtered out.
public MinScore ( float minScore ) : SearchBuilder
minScore float
리턴 SearchBuilder

NoFields() 공개 메소드

Sets no fields to be loaded, resulting in only id and type to be returned per field.
public NoFields ( ) : SearchBuilder
리턴 SearchBuilder

Query() 공개 메소드

Constructs a new search source builder with a search query.
public Query ( IQueryBuilder query ) : SearchBuilder
query IQueryBuilder
리턴 SearchBuilder

Query() 공개 메소드

Constructs a new search source builder with a raw search query.
public Query ( byte queryBinary ) : SearchBuilder
queryBinary byte
리턴 SearchBuilder

Query() 공개 메소드

Constructs a new search source builder with a raw search query.
public Query ( byte queryBinary, int queryBinaryOffset, int queryBinaryLength ) : SearchBuilder
queryBinary byte
queryBinaryOffset int
queryBinaryLength int
리턴 SearchBuilder

Query() 공개 메소드

Constructs a new search source builder with a raw search query.
public Query ( string queryString ) : SearchBuilder
queryString string
리턴 SearchBuilder

ScriptField() 공개 메소드

Adds a script field under the given name with the provided script.
public ScriptField ( string name, string script ) : SearchBuilder
name string The name of the field
script string The script
리턴 SearchBuilder

ScriptField() 공개 메소드

Adds a script field.
public ScriptField ( string name, string script, object>.Dictionary @params ) : SearchBuilder
name string The name of the field
script string The script to execute
@params object>.Dictionary
리턴 SearchBuilder

ScriptField() 공개 메소드

Adds a script field.
public ScriptField ( string name, string lang, string script, object>.Dictionary @params ) : SearchBuilder
name string The name of the field
lang string The language of the script
script string The script to execute
@params object>.Dictionary
리턴 SearchBuilder

SearchSource() 공개 정적인 메소드

A static factory method to construct a new search source.
public static SearchSource ( ) : SearchBuilder
리턴 SearchBuilder

Size() 공개 메소드

The number of search hits to return. Defaults to 10.
public Size ( int size ) : SearchBuilder
size int
리턴 SearchBuilder

Sort() 공개 메소드

Adds a sort builder.
public Sort ( ISortBuilder sort ) : SearchBuilder
sort ISortBuilder
리턴 SearchBuilder

Sort() 공개 메소드

Add a sort against the given field name.
public Sort ( string name ) : SearchBuilder
name string
리턴 SearchBuilder

Sort() 공개 메소드

Adds a sort against the given field name and the sort ordering.
public Sort ( string name, SortOrder order ) : SearchBuilder
name string The name of the field
order SortOrder The sort ordering
리턴 SearchBuilder

Stats() 공개 메소드

The stats groups this request will be aggregated under.
public Stats ( ) : SearchBuilder
리턴 SearchBuilder

ToJsonObject() 공개 메소드

public ToJsonObject ( ) : object
리턴 object

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

TrackScores() 공개 메소드

Applies when sorting, and controls if scores will be tracked as well. Defaults to false.
public TrackScores ( bool trackScores ) : SearchBuilder
trackScores bool
리턴 SearchBuilder

Version() 공개 메소드

Should each {@link org.elasticsearch.search.SearchHit} be returned with a version associated with it.
public Version ( bool version ) : SearchBuilder
version bool
리턴 SearchBuilder