Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fulltext Index with Lucene: boost option does not work #9118

Closed
apetropavlovskiy opened this issue Jan 29, 2020 · 3 comments
Closed

Fulltext Index with Lucene: boost option does not work #9118

apetropavlovskiy opened this issue Jan 29, 2020 · 3 comments
Assignees
Labels
Milestone

Comments

@apetropavlovskiy
Copy link

apetropavlovskiy commented Jan 29, 2020

OrientDB Version: 3.0.27

Java Version: 1.8

OS: Windows 7 x64

Expected behavior

SELECT FROM City WHERE SEARCH_CLASS("+name:cas* +description:beautiful", { "allowLeadingWildcard": true , "boost": { "name": 2 } } ) = true

Actual behavior

Error: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Float

Steps to reproduce

SELECT FROM City WHERE SEARCH_CLASS("+name:cas* +description:beautiful", { "allowLeadingWildcard": true , "boost": { "name": 2.0f } } ) = true

Returns:

Error: java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Float

@wolf4ood
Copy link
Member

Hi @apetropavlovskiy

how are you running this query?

Studio or Java API?

Thanks

@wolf4ood wolf4ood self-assigned this Jan 29, 2020
wolf4ood added a commit that referenced this issue Jan 29, 2020
@wolf4ood wolf4ood added the bug label Jan 29, 2020
@wolf4ood
Copy link
Member

Hi @apetropavlovskiy
i've just landed a fix. It will be available in the next release or snapshot after test validation here
https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/3.0.28-SNAPSHOT/

Thanks

@apetropavlovskiy
Copy link
Author

Thank you!

@wolf4ood wolf4ood added this to the 3.0.28 milestone Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants