Git Product home page Git Product logo

nhibernate-search's People

Contributors

carlraymond avatar codekaizen avatar darioquintana avatar ecortese avatar hazzik avatar renovate[bot] avatar timurzanagar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nhibernate-search's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/GenerateAsyncCode.yml
  • actions/checkout v4
  • actions/setup-dotnet v4
.github/workflows/test.yml
  • actions/checkout v4
  • actions/setup-dotnet v4
  • irongut/CodeCoverageSummary v1.3.0
  • marocchino/sticky-pull-request-comment v2
nuget
.config/dotnet-tools.json
  • csharpasyncgenerator.tool 0.22.0
src/Directory.Build.props
  • GitVersion.MsBuild 5.12.0
  • Microsoft.SourceLink.Github 1.1.1
  • Microsoft.NETFramework.ReferenceAssemblies 1.0.3
src/NHibernate.Search.Tests/NHibernate.Search.Tests.csproj
  • System.Data.SQLite.Core 1.0.118
  • coverlet.collector 6.0.2
  • NUnit3TestAdapter 4.5.0
  • NUnit 3.14.0
  • Microsoft.NET.Test.Sdk 17.10.0
  • log4net 2.0.17
src/NHibernate.Search/NHibernate.Search.Lucene.csproj
  • NHibernate 5.3.13
  • Lucene.Net.QueryParser 4.8.0-beta00016

  • Check this box to trigger a request for Renovate to run again on this repository

Is there any example on how to use this library against OpenSearch?

I want to load an NHibernate entity from a DB, push it to an OpenSearch node for indexing, and then query OpenSearch using C# expressions.
Is that possible, and are there any examples for that (mainly the OpenSearch part)?
I was looking at the tests and I was hoping it would be something like this, but there is an apparent problem: I have not specified the OpenSearch Url anywhere (nhSession is the session towards the DB):

                IFullTextSession s = Search.CreateFullTextSession(nhSession); // nhSession is the session towards the DB.
                using (ITransaction tx = s.BeginTransaction())
                {
                    s.Save(doc);
                    tx.Commit();

                    var res = s.Query<Document>()
                        .Where(f => f.CreatedDate > DateTime.Parse("2023-08-01"))
                        .ToArray();
                }

Is it possible to get an ISession that points to an OpenSearch node or cluster, instead of a relational DB?
It would be nice to have some sample code in the README page.

Also, what I am trying to do when querying requires building complex filter conditions, unlike the examples here, so that's why I was wondering if I could use expressions, similar to what is shown for the Java version here.

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.