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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:31:17+00:00 2026-05-10T18:31:17+00:00

Lucene is an excellent search engine, but the .NET version is behind the official

  • 0

Lucene is an excellent search engine, but the .NET version is behind the official Java release (latest stable .NET release is 2.0, but the latest Java Lucene version is 2.4, which has more features).

How do you get around this?

  • 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. 2026-05-10T18:31:18+00:00Added an answer on May 10, 2026 at 6:31 pm

    One way I found, which was surprised could work: Create a .NET DLL from a Java .jar file! Using IKVM you can download Lucene, get the .jar file, and run:

    ikvmc -target:library <path-to-lucene.jar> 

    which generates a .NET dll like this: lucene-core-2.4.0.dll

    You can then just reference this DLL from your project and you’re good to go! There are some java types you will need, so also reference IKVM.OpenJDK.ClassLibrary.dll. Your code might look a bit like this:

    QueryParser parser = new QueryParser('field1', analyzer); java.util.Map boosts = new java.util.HashMap(); boosts.put('field1', new java.lang.Float(1.0)); boosts.put('field2', new java.lang.Float(10.0));  MultiFieldQueryParser multiParser = new MultiFieldQueryParser                       (new string[] { 'field1', 'field2' }, analyzer, boosts); multiParser.setDefaultOperator(QueryParser.Operator.OR);  Query query = multiParser.parse('ABC'); Hits hits = isearcher.search(query); 

    I never knew you could have Java to .NET interoperability so easily. The best part is that C# and Java is ‘almost’ source code compatible (where Lucene examples are concerned). Just replace System.Out with Console.Writeln :).

    =======

    Update: When building libraries like the Lucene highlighter, make sure you reference the core assembly (else you’ll get warnings about missing classes). So the highlighter is built like this:

    ikvmc -target:library lucene-highlighter-2.4.0.jar -r:lucene-core-2.4.0.dll 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i use lucene search but lucene has a bunch of special characters to escape
Is Lucene.Net suitable as the search engine for frequently changing content? Or more specificically,
Has anyone used Lucene.NET rather than using the full text search that comes with
I'm using Lucene.Net to implement a search website (to search PDFs). Once the keyword
How can restrict Lucene.Net to index only these terms that has length greater than
http://lucene.apache.org/java/2_3_1/api/core/org/apache/lucene/search/MultiPhraseQuery.html for the example Microsoft app*, he says use IndexReader.term() but that returns TermEnum
I want Lucene.NET to store a value while indexing a modified, stripped-down version of
http://incubator.apache.org/lucene.net/ has it in svn tree format. I need whole source zip. Searched through
We use Lucene.NET to implement a full text search on a clients website. The
Lucene: I would like to do a search on the index which I have

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.