Questions tagged [term-vectors]
16 questions
5
votes
1 answer
How to get term vector info for the whole index in elastic search?, not at a document level
According to elastic search documentation, https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html, term vectors can be applied on documents only. Is there any way I can apply it at an index level.
My use case is to…

Dinesh Babu Rengasamy
- 303
- 3
- 16
4
votes
1 answer
Multi-word Term Vectors with Word nGrams?
I'm aiming to build an index that, for each document, will break it down by word ngrams (uni, bi, and tri), then capture term vector analysis on all of those word ngrams. Is that possible with Elasticsearch?
For instance, for a document field…

ev0lution37
- 1,129
- 2
- 14
- 28
3
votes
0 answers
User-provided term vectors for highlighting in Elasticsearch
I want to use Elasticsearch's highlighting features in search results, but I can't use an analyzer plugin. Our (very custom) NLP pipeline is fairly heavy (in CPU and memory, and in production it may talk to other services for e.g. dictionary…

Fabrice Gabolde
- 215
- 2
- 8
2
votes
1 answer
Elastic search Term Vector API's Field Statistics Meaning
In the elastic search documentation, under Term Vectors API
Field statistics
Setting field_statistics to false (default is true) will omit :
document count (how many documents contain this field)
sum of document frequencies (the sum of document…

John Lee
- 43
- 5
2
votes
2 answers
When storing term vectors is the parameter "store" mandatory?
I want to store term vectors of a field but I have doubt in my mind. In the documentation they say:
"mappings": {
"tweet": {
"properties": {
"text": {
"type": "text",
"term_vector":…

mel
- 2,730
- 8
- 35
- 70
1
vote
0 answers
Get the offsets and position of searched terms in Solr
While doing a search for a text in solr , I am trying to get offset for the search term in the result.
for eg :
q=id:123456+((description:"abcde"+document:"abcde"+author:"abcde"))&fl=id,codes&sort=service_date+desc
In response I want:
{
…

Krishna Sharma
- 11
- 1
1
vote
0 answers
Elasticsearch mtermvectors python API query
I am currently working on Elasticsearch with a huge number of documents(around 500K) in an index. I want to store n-grams of each document's text data(This is also huge ~ per doc contains 2 pages of text data) in another index. So I calculating term…

Ketan Krishna Patil
- 81
- 1
- 6
1
vote
2 answers
Obtaining Lucene term vectors for a found term in a string
I am trying to highlight terms in a string. My code searches along a string and looks for equivalent terms in an index. The code returns found terms ok. However, I would like to return the original string, to the user, that was inputted by the user…

Phil
- 31
- 4
1
vote
2 answers
term list / term vector pos-tagging in R
I have a .csv file with only one column containing 1000 rows. Each row contains a word (bag-of-words model). Now I want to find out for each word whether it is a noun, verb, adjective etc. .I would like to have a second column (with 1000 rows), each…

Hu_Ca
- 47
- 1
- 5
1
vote
1 answer
Elasticsearch: total term frequency and doc count from given set of documents
I am trying to get total term frequency and document count from given set of documents, but _termvectors in elasticsearch returns ttf and doc_count from all documents within the index. Is there any way so that I can specify list of documents…

Anoop Kumar
- 448
- 1
- 8
- 17
0
votes
0 answers
Elasticsearch: return term-vectors together with documents as a response to a search request
Elastic Term vector API (https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html) seems to be focused on getting the term-vector on a per-document basis, the classic user story being "Get me a term vector by Document…

roykeane
- 1
- 1
0
votes
0 answers
Lie derivative of differential forms
How lie derivative of a one form with respect to a Vector field different from Lie derivative of a vector field with respect to another vector field?
0
votes
2 answers
Elasticsearch: JSON to get frequency of specific term
I think this is a straightforward application, yet I cannot find a recipe on the internet.
Can you suggest a JSON query to send through python to an Elasticsearch instance that would return the frequency of a specific term in a certain field?
I…

Radio Controlled
- 825
- 8
- 23
0
votes
1 answer
Elasticsearch: Accessing all terms in TermVectorResponse in plugin
I'm trying to get a list of Terms from a termvectorresponse in an elasticsearch plugin. I want to get access to all of the statistics which are tied to the terms and am having trouble figuring out how to do that.
After making a…

Exuro
- 229
- 3
- 15
0
votes
1 answer
How to get termvectors when using ingest plugin in ElasticSearch 5.5?
All,
I have the following code to index a file using ingest plugin in elasticsearch
public class Document
{
public string Id { get; set; }
public string Content { get; set; }
public Attachment Attachment { get; set; }
}
var indexResponse =…

sramalingam24
- 1,297
- 1
- 14
- 19