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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:29:56+00:00 2026-05-22T01:29:56+00:00

Please, help me get distinct result by certain field. I tried go by the

  • 0

Please, help me get distinct result by certain field. I tried go by the many way, googled… But can’t get ti.

I tried add to HashSet, tried DuplicateFilter. Think about Collector without success. But any result. I use Java, lucene-2.9.3.

Example:

some_id   description
1         bbb aaa 
1         aaa ccc
2         aaa ddd
2         fff aaa 

And if I search by description in result I must get distinct some_id (1,2).

Maybe somebody have solution or have code example.

Thanks to advance.

  • 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-22T01:29:57+00:00Added an answer on May 22, 2026 at 1:29 am

    The very-new (still only a patch) grouping module on https://issues.apache.org/jira/browse/LUCENE-1421 might be relevant here. It enables you to group all hits according to a certain field. For example, if you group by “author” then all documents having the same author are in the same group.

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

Sidebar

Related Questions

Could someone please help explain why I can't get this to work? I properly
Can someone please help me get this to work? I am trying not to
Can someone please help me get my head around this bug? With Firefox its
Can you please help to get this code for SQL? I have column name
Could somebody please help me get Clang up and running? (I don't have 3.2)
Could you please help me to get image upload working on a view with
Please suggest some free tools which will help me to get Lines-of-Code metrics for
Please help me with a sanity check. Assuming a many-to-many relationship: Post, PostTagAssoc, Tag
Please help me get the include right. Poem has_many :awards has_one :overall_ranking Award belongs_to
i'm using QT Creator 1.3.1 and trying to compile, but get this error... please

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.