org.elasticsearch.action.explain
Class ExplainResponse

java.lang.Object
  extended by org.elasticsearch.action.explain.ExplainResponse
All Implemented Interfaces:
ActionResponse, Streamable

public class ExplainResponse
extends Object
implements ActionResponse

Response containing the score explanation.


Constructor Summary
ExplainResponse(boolean exists)
           
ExplainResponse(boolean exists, org.apache.lucene.search.Explanation explanation)
           
ExplainResponse(boolean exists, org.apache.lucene.search.Explanation explanation, GetResult getResult)
           
 
Method Summary
 boolean exists()
           
 org.apache.lucene.search.Explanation explanation()
           
 org.apache.lucene.search.Explanation getExplanation()
           
 GetResult getGetResult()
           
 GetResult getResult()
           
 boolean hasExplanation()
           
 boolean isExists()
           
 boolean isMatch()
           
 boolean match()
           
 void readFrom(StreamInput in)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplainResponse

public ExplainResponse(boolean exists)

ExplainResponse

public ExplainResponse(boolean exists,
                       org.apache.lucene.search.Explanation explanation)

ExplainResponse

public ExplainResponse(boolean exists,
                       org.apache.lucene.search.Explanation explanation,
                       GetResult getResult)
Method Detail

getExplanation

public org.apache.lucene.search.Explanation getExplanation()

explanation

public org.apache.lucene.search.Explanation explanation()

isMatch

public boolean isMatch()

match

public boolean match()

hasExplanation

public boolean hasExplanation()

exists

public boolean exists()

isExists

public boolean isExists()

getResult

public GetResult getResult()

getGetResult

public GetResult getGetResult()

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.