org.elasticsearch.search.internal
Class InternalSearchRequest

java.lang.Object
  extended by org.elasticsearch.search.internal.InternalSearchRequest
All Implemented Interfaces:
Streamable

public class InternalSearchRequest
extends Object
implements Streamable

Source structure:

 {
  from : 0, size : 20, (optional, can be set on the request)
  sort : { "name.first" : {}, "name.last" : { reverse : true } }
  fields : [ "name.first", "name.last" ]
  query : { ... }
  facets : {
      "facet1" : {
          query : { ... }
      }
  }
 }
 


Constructor Summary
InternalSearchRequest()
           
InternalSearchRequest(ShardRouting shardRouting, int numberOfShards, SearchType searchType)
           
InternalSearchRequest(String index, int shardId, int numberOfShards, SearchType searchType)
           
 
Method Summary
 BytesReference extraSource()
           
 InternalSearchRequest extraSource(BytesReference extraSource)
           
 String[] filteringAliases()
           
 InternalSearchRequest filteringAliases(String[] filteringAliases)
           
 String index()
           
 long nowInMillis()
           
 InternalSearchRequest nowInMillis(long nowInMillis)
           
 int numberOfShards()
           
 void readFrom(StreamInput in)
           
 Scroll scroll()
           
 InternalSearchRequest scroll(Scroll scroll)
           
 SearchType searchType()
           
 int shardId()
           
 BytesReference source()
           
 InternalSearchRequest source(BytesReference source)
           
 String[] types()
           
 InternalSearchRequest types(String[] types)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalSearchRequest

public InternalSearchRequest()

InternalSearchRequest

public InternalSearchRequest(ShardRouting shardRouting,
                             int numberOfShards,
                             SearchType searchType)

InternalSearchRequest

public InternalSearchRequest(String index,
                             int shardId,
                             int numberOfShards,
                             SearchType searchType)
Method Detail

index

public String index()

shardId

public int shardId()

searchType

public SearchType searchType()

numberOfShards

public int numberOfShards()

source

public BytesReference source()

extraSource

public BytesReference extraSource()

source

public InternalSearchRequest source(BytesReference source)

extraSource

public InternalSearchRequest extraSource(BytesReference extraSource)

nowInMillis

public InternalSearchRequest nowInMillis(long nowInMillis)

nowInMillis

public long nowInMillis()

scroll

public Scroll scroll()

scroll

public InternalSearchRequest scroll(Scroll scroll)

filteringAliases

public String[] filteringAliases()

filteringAliases

public InternalSearchRequest filteringAliases(String[] filteringAliases)

types

public String[] types()

types

public InternalSearchRequest types(String[] types)

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.