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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:30:16+00:00 2026-05-21T00:30:16+00:00

In Lucene I need to add some information about the post for search. For

  • 0

In Lucene I need to add some information about the post for search. For make a better search I thing to add the tags name or some other information to make a bettter search. What option I choose whenever I have two possible option for solve this problem.

Append the tags into the content or excerpt of the post I have.

Or make a new index to solve the same puzzle.

Well I need to know what is different if I append them in existing index or make a new index in lucene to store an another kind of information.

  • 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-21T00:30:16+00:00Added an answer on May 21, 2026 at 12:30 am

    You should add your tags to a separate tokenised tag field.

    A typical query would look something like this:

    content:(+honda +civic) +tag:red +tag:hatchback
    

    The first two terms (honda and civic) are entered by the user, while the second two terms (red and hatchback) would be selected from a list of tags.

    If you want to support tags that contain spaces, you will have to roll your own tokeniser by subclassing CharTokenizer: Lucene.Net support phrases?: What is best approach to tokenize comma-delimited data (atomically) in fields during indexing?

    +tag:"5 door"
    

    You can create a separate index for your tag field, but you will have to use a MultiSearcher to perform a combined search of the separated indexes.

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

Sidebar

Related Questions

I need the list of all search keyword(term) i.e. indexed in lucene index. I
Good afternoon, I need to be able to search a Lucene.Net index with a
I need to perform deletion of the document from lucene search index. Standard approach
I need to adapt lucene's StandardTokenizer to some special purposes regarding twitter data. At
Given a search engine like Lucene and a set of XML documents which need
I have a high-traffic news website that I need to add a search feature
In Lucene.Net, I need to create a query to limit a search to a
Is this possible? In my project I have Hibernate search which need apache lucene
I have multiple lucene.net indexes that I would need to search on for a
I'm using Hibernate Search (which uses Lucene) for searching some Data I have indexed

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.