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

  • Home
  • SEARCH
  • 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 7190065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:26:01+00:00 2026-05-28T19:26:01+00:00

I am using Lucene to search a contacts database. By contacts I mean a

  • 0

I am using Lucene to search a contacts database. By contacts I mean a name, multiple phone numbers, emails, addresses, etc etc. In the database these are obviously split into separate fields and even separate tables. I want to be able to search for contacts based on any of the fields so for instance I could type “John Doe” and Lucene would return John Doe’s contact info. John Doe also has a phone number and i’d like to be able to find his record by entering that phone number, or address, or email etc etc. I don’t want to have to specifically state what field I am searching for.

When creating my index, is it best to merge all the data into a single “data” field, or keep them separate? I will not be storing data in the index except for an id which I will use to retrieve all additional data from the database. Will the Standard Analyzer and Query Parser work well in my situation or should I take more of a custom approach?

I am fairly new to Lucene and am just learning how powerful it really is, so i’m not against really getting into it and creating some complicated custom search queries, but I will need some direction on doing so and want to avoid having to do all of that if its not at all necessary.

  • 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-28T19:26:02+00:00Added an answer on May 28, 2026 at 7:26 pm

    You need not create a single combined field, keeping them separate is probably a better design decision. Think down the line, you might want to do specialized searching.

    You can use a MultiFieldQuery to search all the fields such as Name,Address, City…

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

Sidebar

Related Questions

Am building a Book search API using Lucene. I need to index Book Name,Author,
I'm constructing a simple search form for our support ticket database using Lucene.Net, and
Using Zend Lucene I cannot search numbers in description fields Added it like this:
I am using Lucene.net to search in about 50K entities . these entities are
I am using Lucene to index my database and then perform a phrase search
I am using Lucene to search a contacts directly with general contact information for
I am using Lucene to allow a user to search for words in a
I'm using Lucene.Net to implement a search website (to search PDFs). Once the keyword
We're currently using Lucene 2.1.0 for our site search and we've hit a difficult
I'm looking into using Lucene and/or Solr to provide search in an RDBMS-powered web

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.