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 9208069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:32:09+00:00 2026-06-18T00:32:09+00:00

Code is in Scala. It is extremely similar to Java code. Code that our

  • 0

Code is in Scala. It is extremely similar to Java code.

Code that our map indexer uses to create index: https://gist.github.com/a16e5946b67c6d12b2b8

Utilities that the above code uses to create index and mapping: https://gist.github.com/4f88033204cd761abec0

Errors that java gives: https://gist.github.com/d6c835233e2b606a7074

Response of http://elasticsearch.domain/maps/_settings after running code and getting errors: https://gist.github.com/06ca7112ce1b01de3944

JSON FILES:
https://gist.github.com/bbab15d699137f04ad87
https://gist.github.com/73222e300be9fffd6380

Attached are the json files i’m loading in. I have confirmed that it is loading the right json files and properly outputting it as a string into .loadFromSource and .setSource.

Any ideas why it can’t find the analyzers even though they are in _settings? If I run these json files via curl they work fine and properly setup the mapping.

  • 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-18T00:32:10+00:00Added an answer on June 18, 2026 at 12:32 am

    The code I was using to create the index (found here: Define custom ElasticSearch Analyzer using Java API) was creating settings in the index like:

    “index.settings.analysis.filter.my_snow.type: “stemmer”,”

    It had settings in the setting path.

    I changed my indexing code to the following to fix this:

    def createIndex(client: Client, indexName: String, indexFile: String) {
      //Create index
        client.admin().indices().prepareCreate(indexName)
        .setSource(Utils.loadFileAsString(indexFile))
        .execute()
        .actionGet()
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On migrating our code to Scala 2.9 we've found large swathes of it that
In Scala code that I am writing, I have a Map[String, AnyRef] . When
I'm trying to convert below Java code to Scala: Map<String, List<String>> allEntriesMap = getEntries();
I'm new to Scala and our project mixes Java and Scala code together (using
I saw some scala code that assign _ to a field of class, what
I am trying to parallelise a code using scala actors. That is my first
I have a code in scala that, for various reasons, have few lines of
When I execute following code in scala REPL console: java.util.Collections.max(new java.util.ArrayList[String]()) NoSuchMethodError exception is
I have some mutable scala code that I am trying to rewrite in a
I have some Scala code that does something nifty with two different versions of

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.