Home Lucene Search Luke vs Hibernate Search different result
Reply: 0

Lucene Search Luke vs Hibernate Search different result

user5788 Published in September 19, 2018, 9:09 am

I am running the following lucene query phrase in luke:

+(debtorNumber:10200000 originalDebtorNumber:10200000) +(serviceName:"skype for"^840.0 (serviceName:for* serviceId:for*) (serviceName:skype* serviceId:skype*))

shows at the beginning expected result for ex.:

Skype for Business for Managers

Microsoft Skype for Business Conferencing (Plan2)

Telephone dial-in for Skype for Business Conferencing

and so on.

The same query executed with hibernate search shows different result :/

I am getting for example the following result:

antivirus protection for your PC, notebook or server

central administration for thin clients

skype for comes on the 3rd or 4th page.

The java code is:

SearchManager = Search.getSearchManager(cache)
CacheQuery<MyType> query = searchManager.getQuery(booleanQuery, MyType.class)

List<MyType> pagedResulat = query

This logs the above query which I used in Luke

log.info("Lucene Search boolean query:" + booleanQuery);

Please advise.

share|improve this question
  • Please show us how you are building your boolean query (booleanQuery in your code). – yrodiere Apr 17 at 8:01

1 Answer 1

active oldest votes
up vote 1 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.358235 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO