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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:39:09+00:00 2026-05-26T04:39:09+00:00

I am trying to add html content to Solr with PECL. Unfortunately I can

  • 0

I am trying to add html content to Solr with PECL. Unfortunately I can push content but it will not use the Analyzer types in the schema.xml

For example:

Adding content to solr:

$client = new SolrClient($options);            
$doc = new SolrInputDocument();
$doc->addField('title', 'SELLING CARS');

Schema.xml for the field “title”

<field name="title" type="lowercase" indexed="true" stored="true" multiValued="true"/>

This should make sure that the string added is converted to lowercase (I presume)
But when querying the index with:

$query->setQuery('*:*');
$query_response = $client->query($query);

The content is still in Uppercase?

Following output…. Any ideas what I am doing wrong???

…

[0] => SolrObject Object
(
[id] => 422
[title] => Array
(
[0] => SELLING CARS
)
)

  • 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-05-26T04:39:10+00:00Added an answer on May 26, 2026 at 4:39 am

    Actually, the lowercase field type defined in the example schema.xml only lowercases the field when adding it to the index or for query purposes. As you can see below the lowercase type is just setup apply the LowerCaseFilterFactory when indexing or querying the data.

    <!-- lowercases the entire field value, keeping it as a single token.  -->
    <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
      <analyzer>
        <tokenizer class="solr.KeywordTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory" />
      </analyzer>
    </fieldType>
    

    Solr will not change the actual value that you input. If you truly want it to be stored in lowercase in the index, I would recommend lowercasing the value when submitting it to the index.

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

Sidebar

Related Questions

I've been trying to add HTML content to a web view, but can't seem
I am trying to add an HTML content to a web view. If the
Hi guys I'm trying to add a css footer but can't it to work
I'm trying to add html code inside a <span id=options></span> so I'm trying to
I'm trying to add extra HTML attributes to some select options in a dropdown
I'm trying to add some HTML formatted text to Word using Office Interop. My
I am trying to add a .html suffix at the end of all strings
I am trying to add a html snippet dynamically which contains named anchors and
I am trying to add a full html page into ckeditor for some editing
I'm trying to add overflow to an HTML element, and of course it works

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.