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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:41:43+00:00 2026-06-17T15:41:43+00:00

I have a field in my Solr schema like – Type – <fieldType name=text

  • 0

I have a field in my Solr schema like –

Type - <fieldType name="text" class="solr.TextField" positionIncrementGap="100"/>
Declaration - <field name="description" type="text" indexed="true" stored="true"/>

This description field has values for some documents and no data for the remaining. I am not explicitly setting anything when there is no data for the description field as it is not a required field.

The problem is when i query using – description:*. I get a NullPointerException.

I have not changed the schema. Also when I query description:abc it works however for description:* and description:abc* it gives a NullPointerException.

  • Is it the correct behavior?
  • Are the text fields required to be given “” values when we do not have to set it?

Exception –

"error":{
   "trace":"java.lang.NullPointerException\n\tat 
        org.apache.solr.schema.TextField.analyzeMultiTerm(TextField.java:139)\n\tat org.apache.solr.search.SolrQueryParser.analyzeIfMultitermTermText(SolrQueryParser.java:147)\n\tat 
    org.apache.solr.search.SolrQueryParser.getWildcardQuery(SolrQueryParser.java:203)\n\tat 
    org.apache.lucene.queryparser.classic.QueryParserBase.handleBareTokenQuery(QueryParserBase.java:1049)\n\tat 
    org.apache.lucene.queryparser.classic.QueryParser.Term(QueryParser.java:358)\n\tat 
    org.apache.lucene.queryparser.classic.QueryParser.Clause(QueryParser.java:257)\n\tat 
    org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:181)\n\tat 
    org.apache.lucene.queryparser.classic.QueryParser.TopLevelQuery(QueryParser.java:170)\n\tat 
    org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:120)\n\tat
     org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:72)\n\tat 
    org.apache.solr.search.QParser.getQuery(QParser.java:143)\n\tat 
    org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:118)\n\tat 
    org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:185)\n\tat 
    org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)\n\tat
     org.apache.solr.core.SolrCore.execute(SolrCore.java:1699)\n\tat 
    org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:455)\n\tat 
    org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:276)\n\tat 
    org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337)\n\tat 
    org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484)\n\tat 
    org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)\n\tat 
    org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)\n\tat 
    org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)\n\tat 
    org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)\n\tat 
    org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)\n\tat 
    org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)\n\tat 
    org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)\n\tat 
    org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)\n\tat 
    org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)\n\tat 
    org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)\n\tat
     org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)\n\tat 
    org.eclipse.jetty.server.Server.handle(Server.java:351)\n\tat 
    org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)\n\tat 
    org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:47)\n\tat 
    org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)\n\tat 
    org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)\n\tat 
    org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)\n\tat 
    org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)\n\tat 
    org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:66)\n\tat
     org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:254)\n\tat 
    org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)\n\tat 
    org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)\n\tat 
    java.lang.Thread.run(Thread.java:679)\n",
            "code":500}}
  • 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-17T15:41:45+00:00Added an answer on June 17, 2026 at 3:41 pm

    A field of type solr.TextField has to have a Tokenizer associated with it otherwise it fails for wild character search.

    I created a Jira bug for the same here.

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

Sidebar

Related Questions

I have a Solr schema that has a url field: <fieldType name=url class=solr.TextField positionIncrementGap=100>
I have my text fields defined as follows: <fieldType name=text class=solr.TextField positionIncrementGap=100 omitNorms=false> <analyzer
I have a SOLR schema.xml like this: <field name=cartype type=lowercase indexed=true stored=true/> <field name=color
In solr schema.xml I have a field <field name=name type=string indexed=true stored=true multiValued=false />
In solr schema i have field as below <field name=Company type=string indexed=true stored=true/> and
I have a text-field called name in my schema.xml . A query q=name:(organic) returns
I have a Solr schema in which a field is declared as TrieFloatField: <fieldType
This is what I have in my schema.xml: <fields> <field name=id type=string indexed=true stored=true
schema.xml snippet: <field name=id type=string indexed=true stored=true required=true /> <field name=notes type=text_general indexed=true stored=true/>
I have a Solr engine deployed with a Standard Request Handler <requestHandler name=standard class=solr.SearchHandler

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.