Code Monkey home page Code Monkey logo

liferay-semantic-search's Introduction

Liferay Semantic Search

A Docker Compose setup to start using Semantic Search with Liferay DXP.

Usage

docker compose up -d --build

This will start the following services:

  • MySQL (8)
  • Elasticsearch (8.11.4)
  • Liferay DXP (2023.Q4)
  • Txtai (latest)
  • Kibana (8.11.4)

MySQL and Kibana are not necessary but nice to have. You could comment those services in the Compose file. For MySQL, don't forget to comment Liferay DXP configuration as well.

Once everything started, you can login into Liferay DXP and start creating supported content for semantic search (see supported asset types in the docs).

The necessary blueprint and element to execute a semantic search should be already created thanks to the batch client extension (see the source & the docs).

This feature requires Liferay DXP 7.4 U94+.

All you need to do, once you have some content, is to configure your search page and add the blueprint widget configured to use the Semantic Search Blueprint. If you want the semantic search to work with the search bar autocomplete feature, you can configure the search bar to use the Semantic Search Blueprints intead of the default suggestions.

For Liferay PaaS

If you want to use this stack on Liferay PaaS, you will need to add the txtai folder in the Cloud workspace in order to add a new custom service thanks to the LCP.json file you can find in it.

For Liferay, you need to deploy the Semantic Search configuration file and activate the feature flag by adding feature.flag.LPS-122920=true in the portal-ext.properties or by adding the environment variable LIFERAY_FEATURE_PERIOD_FLAG_PERIOD__UPPERCASEL__UPPERCASEP__UPPERCASES__MINUS__NUMBER1__NUMBER2__NUMBER2__NUMBER9__NUMBER2__NUMBER0_=true.

Import Data

If you're looking to import a lot of data, you can find this repo that contains a Python script to import Stack Exchange posts as Liferay Message Board entities.

liferay-semantic-search's People

Contributors

lgdd avatar

Stargazers

 avatar

Watchers

 avatar

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.