Giter Club home page Giter Club logo

Comments (4)

nikcio avatar nikcio commented on July 29, 2024

@Sven883 The error you have added to your issue suggests that the problem with the native query isn't the wildcard boost but a range part of the query. Could you try making a minimal native query which returns an error.

You could start with:

var result = searcher.CreateQuery(IndexTypes.Content).NativeQuery("sfTitle:bedrijfsinformatie*^10.0");

This would make it easier to pin point where the issue lies in the query.

Your raw native query is:

+__NodeTypeAlias:vacancypage +(parentID:[1393 TO 1393]) +(sfTitle:bedrijfsinformatie*^10.0) (sfJobCategories_nodeNames_nl:bedrijfsinformatie*^8.0) (sfAccountName_nodeNames_nl:bedrijfsinformatie*^6.0) (contents_nl:bedrijfsinformatie*^4.0 contents:bedrijfsinformatie*^4.0)

from examine.

Sven883 avatar Sven883 commented on July 29, 2024

@nikcio would there be more options when using examine 3 with umbraco 10?
We don't want to switch our queries to nativeQueries.

from examine.

nikcio avatar nikcio commented on July 29, 2024

@Sven883 My suggestion is to check that the query fails when limited to only one expression or at least finding the minimal query to trigger the issue. This will make it easier to figure out why your query is throwing an error. Hopefully locating the error will make it possible to fix the issue happening in the Boost method you describe.

Note: Please add the version of Examine you're using. Otherwise it's impossible to know where to look for the error 😄

from examine.

Shazwazza avatar Shazwazza commented on July 29, 2024

I would suggest determining the bare minimal query that fails like @nikcio. I would also suggest starting your tests by cloning this repo and trying to write a unit test for this.

On another note, boosting and wildcard combination is not normally allowed by Lucene. More info here https://stackoverflow.com/questions/10352404/lucene-net-boost-not-working-when-using-wildcard

You can also search this repo for SetMultiTermRewriteMethod and you'll see that there is mention of using this already.

In the ErrorCheckingScoringBooleanQueryRewrite it has a description: https://github.com/Shazwazza/Examine/blob/release/3.0/src/Examine.Lucene/Providers/ErrorCheckingScoringBooleanQueryRewrite.cs

This isn't enabled by default but it could be, though you have to cast your queries down to the Lucene classes.

There's also this commented out code here with comments in BaseLuceneSearcher: https://github.com/Shazwazza/Examine/blob/release/3.0/src/Examine.Lucene/Providers/BaseLuceneSearcher.cs#L62

from examine.

Related Issues (20)

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.