Skip to content

Option "type": "bool_prefix" is not implemented #8303

Closed as not planned
Closed as not planned
@YazdanJahedi

Description

@YazdanJahedi

I was trying to rewrite such Elastic query using Elastic client v8:

POST /my_index/_search
{
  "query": {
    "simple_query_string": {
      "type": "bool_prefix",
      "query": "my sample word",
      "fields": [
        "title"
      ],
      "default_operator": "AND"
    }
  }
}

And I realized that it seems there is no implementations for the "type": "bool_prefix" part.
consider this :

var simpleQueryString = new SimpleQueryStringQuery()
{
   // Other fields exist but the 'Type' property not found
   Query = text,
   Fields = new Field[]
    {
        new("h1"),
    },
   DefaultOperator = Operator.And,
};

It would be nice to add this feature.

I would be thankful suggest me an alternative way to have the same functionality with current existing options and properties if it is possible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions