Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8819993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:30:01+00:00 2026-06-14T05:30:01+00:00

In Elastic search, how can we search on free text. for example, we have

  • 0

In Elastic search, how can we search on free text. for example, we have free text data in one of the attribute like “test!£!£”!£”test“.

when, i do search using QueryBuilders, it gives exception due to special characters.

On searching web, come to know that we need to use escapeUtils from Lucene. QueryParser.escape(searchText)

Now, when i do exact match search in this case it ignores those characters and brings up the result for “test” as well.

Please suggest something on this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:30:03+00:00Added an answer on June 14, 2026 at 5:30 am

    You’re probably using the default mapping, thus the StandardAnalyzer. I guess it’s stripping out those characters, that are not even indexed. You’d need to decide how you want to index your text. Do you want to tokenize or do you want to have a single token? Do you want to keep those characters in the index? Based on that you need to pick the right analyzer and update your mapping through the Put mapping API. If you for example want to index the text as it is, you just configure the field as "index":"not_analyzed", which means that its context will be indexed but no text analysis will be applied to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with using elastic search at the moment. When I try
I am running elastic search as servlet (ie using NodeServlet). But can't find any
I am evaluating Elastic Search for a client. I have begun playing with the
I want to run an elastic search query which groups data by the combination
I am searching using Elasticsearch and would like to understand how I can add
I can't seem to understand the QueryDSL for facets in elastic search. Below are
I've recently started using ElasticSearch and I can't seem to make it search for
How can I store elasticsearch settings+mappings in one file (like schema.xml for Solr)? Currently,
I am aware of how using the facet feature of elasticsearch, we can get
i have elasticsearch database of geo objects. I want to search the nearest objects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.