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

Lucene Search Luke vs Hibernate Search different result

user1433
1#
user1433 Published in April 23, 2018, 9:20 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
                                .maxResults(criteria.getPageSize())
                                .firstResult(Math.toIntExact(criteria.getOffset()))
                                .list()

This logs the above query which I used in Luke

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

Please advise.

You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO