Coder Social home page Coder Social logo

quarkus-lucene's Introduction

Lucene extension for Quarkus

All Contributors

Version License

Apache Lucene is a Java library providing powerful indexing and search features, as well as spellchecking, hit highlighting and advanced analysis/tokenization capabilities.

This extension adds support for building native executables when using Apache Lucene.

Usage

Configuration

After configuring the Quarkus BOM:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-bom</artifactId>
            <version>${insert.quarkus.version.here}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

You can configure the lucene extension by adding the following dependency:

<dependency>
    <groupId>io.quarkiverse.lucene</groupId>
    <artifactId>quarkus-lucene</artifactId>
    <version>${insert.release.version}</version>
</dependency>

Limitations

  • The extension disables the workaround for bug JDK-4724038 in the MMapDirectory. This means that files from the index will not be deleted immediately when Lucene issues a deletion operation, but only upon garbage collection, causing a temporary larger disk usage.

  • Test Coverage is currently limited to lucene-core ,lucene-analyzers-common and lucene-queryparser artifacts from Lucene.

Contributors โœจ

Thanks goes to these wonderful people (emoji key):

Gustavo
Gustavo

๐Ÿ’ป ๐Ÿšง
Dainius Jocas
Dainius Jocas

๐Ÿ’ป ๐Ÿšง
Guillaume Smet
Guillaume Smet

๐Ÿ’ป
Melloware
Melloware

๐Ÿ“– ๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind welcome!

quarkus-lucene's People

Contributors

actions-user avatar allcontributors[bot] avatar dainiusjocas avatar dependabot[bot] avatar gastaldi avatar gsmet avatar maxandersen avatar melloware avatar wglanzer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

quarkus-lucene's Issues

Add all tokenattribute types

In this PR I've added a couple of attribute types that covered support for some use cases.

Is there a reason why not all attributes from package org.apache.lucene.analysis.tokenattributes are added? Maybe we can just add them all?

Questions because of a lack of documentation

Hello everyone,

I'm not sure if this is the right place for my questions so please correct me if there is a better place to aks them.

As the site https://quarkus.io/extensions/io.quarkiverse.lucene/quarkus-lucene suggests, there is an extension for Quarkus to make Lucene useable. Unfortunately, the documentation link just redirected me to this repository where besides the read me is no information on how to use the extension. I would be very glad if you could show me where to find, if it's existing, guides to use this extension.

And now i'll state my question here anyways for the case that the documentation doesn't exist at all.

My Situation:
I'm trying to use Hibernate Search with a Lucene backend, for now in regular JVM-mode. Therefore i picked this Lucene dependency as well as the regular Hibernate Search ORM dependency (https://mvnrepository.com/artifact/org.hibernate/hibernate-search-orm). On Application start i get the exception which you can find on the bottom of this post. So is this problem because of the Extension which I'm trying to use (maybe because of Quarkus Maven plugin bootstrap sequence generation which doesn't work at this external library) or am I just using the wrong Extension or need to do Configurations or..?

As I said I'm sorry to bother you here but since I can't find any documentation this is my last resort :)

Thank you!

2023-07-11 11:49:25,270 INFO [org.hib.sea.eng.Version] (JPA Startup Thread) HSEARCH000034: Hibernate Search 5.11.12.Final 2023-07-11 11:49:26,550 ERROR [io.qua.run.Application] (Quarkus Main Thread) Failed to start application (with profile [dev]): **org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.search.hcore.spi.EnvironmentSynchronizer]** at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:260) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:239) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:216) at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.getService(SessionFactoryServiceRegistryImpl.java:100) at org.hibernate.search.hcore.impl.HibernateSearchIntegrator.integrate(HibernateSearchIntegrator.java:61) at org.hibernate.integrator.spi.Integrator.integrate(Integrator.java:65) at org.hibernate.internal.SessionFactoryImpl.integrate(SessionFactoryImpl.java:466) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:246) at io.quarkus.hibernate.orm.runtime.boot.FastBootEntityManagerFactoryBuilder.build(FastBootEntityManagerFactoryBuilder.java:84) at io.quarkus.hibernate.orm.runtime.FastBootHibernatePersistenceProvider.createEntityManagerFactory(FastBootHibernatePersistenceProvider.java:74) at jakarta.persistence.Persistence.createEntityManagerFactory(Persistence.java:80) at jakarta.persistence.Persistence.createEntityManagerFactory(Persistence.java:55) at io.quarkus.hibernate.orm.runtime.JPAConfig$LazyPersistenceUnit.get(JPAConfig.java:156) at io.quarkus.hibernate.orm.runtime.JPAConfig$1.run(JPAConfig.java:64) at java.base/java.lang.Thread.run(Thread.java:834)

Could you add module 'lucene-memory' ?

Modules lucene-core, lucene-queryparser and lucene-analyzers-common are included in the extension. We are also using module lucene-memory, so unfortunately we cannot use the extension.

Reflection Config

There are better ways to handle the Deployment processor registering the reflection classes. You can assign to me if you want.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.