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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:38:22+00:00 2026-05-30T21:38:22+00:00

I have a problem and Google hasn’t helped me much. I’m trying figure out

  • 0

I have a problem and Google hasn’t helped me much. I’m trying figure out a way to ignore HTML while searching a Solr index in ColdFusion (9).

For example, if I search for microsoft and my index contains Microsoft© makes Windows® I’m prompted to search for “Microsoft© makes Windows®” rather than showing the actual result.

As you can see below, I’m just passing the string into the criteria property of cfsearch – but again – doing this produces (what I consider to be) a “dirty” result.

  <cfsearch
      collection="mycollection"
      criteria="microsoft"
      name="results"
      maxrows="100"
      suggestions="always"
      contexthighlightbegin="<strong>"
      contextHighlightEnd="</strong>"
      contextPassages="3"
      />

I’ve been looking at the documentation for Solr’s query syntax but I don’t see anything that jumps out at me on how to avoid this problem.

Should I look at providing the index a “flat” version of text or is there a way to avoid HTML strings such as &copy; / &reg; / &trade;?

I’m open to suggestions.

— Brian.

  • 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-30T21:38:23+00:00Added an answer on May 30, 2026 at 9:38 pm

    For anyone that might be faced with the same question:

    The solution for this question was to use an alternate method of indexing rather than trying to work around the HTML within the index.

    Within the database I created a new field called index_search and on my insert method within my application I used a regex to omit any special(er) characters: "[^[:word:].[:space:]-]"

    From there, I passed the index_search field to the body of cfindex and used the HTML name as the title:

      <cfindex
        collection="mycollection"
        action="update"
        body="name_search,html_description"
        title="name_html"
        key="UUID"
        query="data">
    

    Using this method produced the expected output when searching for words or phrases close to, or, wrapped in HTML. IE: Searching microsoft would lists all results with Microsoft© within 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 concerning Google cache my old content URLs while I created
I have a simple vim problem that Google hasn't managed to help me with.
I have been having a problem that has troubled me for a while. Searching
I have a problem with Google web fonts. HTML: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML
I have a tricky problem with Google Chrome Browser. I have the folowing HTML
I have problem with displaying adsense ads in ie7 google adsense adds an iframe
I have a problem and search for a solution on Google but can't find
I have a problem - i can't compile SqlCipher. I'm using this http://groups.google.com/group/sqlcipher/browse_thread/thread/55c6296b56bf4533/c792bbec6df7d4f4?tvc=2#c792bbec6df7d4f4 instructions
I have a problem loading google map. In my head section I have the
I have a big problem with Google Chrome and its memory. My app is

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.