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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:29:04+00:00 2026-06-12T07:29:04+00:00

How to search through html entities in lucene.net? All my index in numeric html

  • 0

How to search through html entities in lucene.net?

All my index in numeric html entities, so if I search for example “34” it comes &#<b>34</b>;

Also very interesting, how to make search through different fields with different words like in SQL. for example search phrase “word1 word2”

SELECT * FROM table WHERE 
title LIKE 'word1%' OR title LIKE 'word2%' OR 
description LIKE'word1%' OR description LIKE 'word2%'
  • 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-12T07:29:05+00:00Added an answer on June 12, 2026 at 7:29 am

    It comes down to how you store it. When you store your document, it appears you’re storing your HTML and searching on it.

    I recommend that you have two separate fields:

    • One stores the raw HTML, but it is not analysed (there’s no need to search on the markup, is there?)
    • One contains the HTML that is processed for searching. This field is not stored but it is analyzed.

    In order to populate the second field, you should run the HTML through something like HTML Agility Pack to get the inner text of the HTML nodes you’re storing/processing, and then run that text through the HttpUtility.HtmlDecode method to get the text that the HTML entities represent which you can actually analyze and search on.

    Then, you can search on the analyzed field for whatever you wish without doing anything special, and then retrieve the content from the field that stores the raw HTML.

    In regards to wildcard searches, they are supported, you just have to build your query appropriately (assuming you are using a QueryParser). Note that wildcard prefixes are not enabled by default.

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

Sidebar

Related Questions

I'm trying to search through many documents and find all instances where an html
I'm new to Python and I have been trying to search through html with
I want to search through a html file and then get the url to
I have to search through a list and replace all occurrences of one element
I am trying to use Perl to search through an html file, looking for
I'm looking for a way to search through HTML and surround keywords with an
I need to search through an HTML document for two specific strings of text
I have a PHP search script that parses the results through HTML to be
I'm working on a script to search through a block of HTML text for
I need to use regex to search through an html file and replace href=pagename

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.