Skip to content

this adds support for passing in documents to termvector and mtervector #1124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

{
"mtermvectors" : {
"documentation" : "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/docs-multi-termvectors.html",
"documentation" : "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html",
"methods" : ["GET", "POST"],
"url" : {
"path" : "/_mtermvectors",
Expand All @@ -13,11 +14,7 @@
"type" : {
"type" : "string",
"description" : "The type of the document."
},
"id" : {
"type" : "string",
"description" : "The id of the document."
}
}
},
"params" : {
"ids" : {
Expand Down Expand Up @@ -74,11 +71,16 @@
"type" : "string",
"description" : "Parent id of documents. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".",
"required" : false
},
"realtime": {
"type" : "boolean",
"description" : "Specifies if requests are real-time as opposed to near-real-time (default: true).",
"required" : false
}
}
},
"body" : {
"description" : "Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation.",
"description" : "Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation.",
"required" : false

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"termvector" : {
"documentation" : "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/docs-termvectors.html",
"documentation" : "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html",
"methods" : ["GET", "POST"],
"url" : {
"path" : "/{index}/{type}/{id}/_termvector",
"paths" : ["/{index}/{type}/{id}/_termvector"],
"path" : "/{index}/{type}/_termvector",
"paths" : ["/{index}/{type}/_termvector", "/{index}/{type}/{id}/_termvector"],
"parts" : {
"index" : {
"type" : "string",
Expand All @@ -18,8 +18,7 @@
},
"id" : {
"type" : "string",
"description" : "The id of the document.",
"required" : true
"description" : "The id of the document, when not specified a doc param should be supplied."
}
},
"params": {
Expand Down Expand Up @@ -72,11 +71,16 @@
"type" : "string",
"description" : "Parent id of documents.",
"required" : false
},
"realtime": {
"type" : "boolean",
"description" : "Specifies if request is real-time as opposed to near-real-time (default: true).",
"required" : false
}
}
},
"body": {
"description" : "Define parameters. See documentation.",
"description" : "Define parameters and or supply a document to get termvectors for. See documentation.",
"required" : false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4725,7 +4725,7 @@ public MultiSearchRequestParameters SearchType(SearchType search_type)

///<summary>Request parameters descriptor for MtermvectorsGet
///<pre>
///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/docs-multi-termvectors.html
///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
///</pre>
///</summary>
public class MultiTermVectorsRequestParameters : FluentRequestParameters<MultiTermVectorsRequestParameters>
Expand Down Expand Up @@ -4820,6 +4820,16 @@ public MultiTermVectorsRequestParameters Parent(string parent)
return this;
}


internal bool _realtime { get; set; }
///<summary>Specifies if requests are real-time as opposed to near-real-time (default: true).</summary>
public MultiTermVectorsRequestParameters Realtime(bool realtime)
{
this._realtime = realtime;
this.AddQueryString("realtime", this._realtime);
return this;
}

}


Expand Down Expand Up @@ -5955,7 +5965,7 @@ public SuggestRequestParameters Source(string source)

///<summary>Request parameters descriptor for TermvectorGet
///<pre>
///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/docs-termvectors.html
///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html
///</pre>
///</summary>
public class TermvectorRequestParameters : FluentRequestParameters<TermvectorRequestParameters>
Expand Down Expand Up @@ -6050,6 +6060,16 @@ public TermvectorRequestParameters Parent(string parent)
return this;
}


internal bool _realtime { get; set; }
///<summary>Specifies if request is real-time as opposed to near-real-time (default: true).</summary>
public TermvectorRequestParameters Realtime(bool realtime)
{
this._realtime = realtime;
this.AddQueryString("realtime", this._realtime);
return this;
}

}


Expand Down
Loading