Skip to content

How can I filter terms in a term vector request? #1868

Closed
@crjackso

Description

@crjackso

Given the code listed below, how can I filter the terms returned from a term vector request as a means of ensuring no words with a frequency greater than x are returned? The ElasticSearch (ES) feature I'm trying to play around with is documented on the ES website.
Here's the code snippet:

 var termVectorResponse = ElasticClient.MultiTermVectors(new MultiTermVectorsRequest(IndexName, Type)
        {                          
            Documents = documentIds.Select(id => new MultiTermVectorOperation<Document>(id)
            {
                FieldStatistics = true,
                Payloads = true,
                TermStatistics = true,
                Positions = true,
                Offsets = true,
                Type = Type,
                Index = IndexName           
            })      
        });

How can I alter this code to specify term filters like max_num_terms and min_term_freq? I'm using ES version 2.02. Thanks for the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions