Comments (4)
@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.
@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.
@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.
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)
- Examine GetFieldInternalQuery error HOT 20
- And( q=> q.GroupedOr(...)) adds and (+) to the first term of the groupedOr HOT 3
- Abstaction of LuceneIndex.cs HOT 5
- Any plan to release new Version HOT 2
- Sorting and paging highlight same both menu items HOT 6
- Content without an English (default language) version is not indexed HOT 1
- Indexing new valuesets adds unique documents instead of updating existing with the same __NodeId HOT 8
- Synchronous indexing HOT 8
- Failed to retrieve indexer details. HOT 3
- Query by Id does not return search result HOT 5
- ❓ How to tell if an Examine Index is Healthy? Possible ASPNET HealthCheck 💡 HOT 2
- NativeQuery performance CPU usage HOT 5
- Same query but different results if executed as NativeQuery vs Fluent API HOT 7
- Hardcoded default limit of max 500 search results is not obvious
- GetMultiFieldQuery shouldn't return an empty lucene query if there are no field values
- Examine on load balanced environment HOT 8
- Getting Searcher Synchronously? HOT 4
- Lucene.Net.Index.CorruptIndexException: invalid deletion count: 2 vs docCount=1 HOT 7
- Wildcard search in `GroupedOr()` HOT 13
- How to make a boosted phrase with FluentAPI? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examine.