Hi,
I have implemented Lucene Search Engine results in my website, and it works flawlessly, except one distinct issue:
When I try to search a Hebrew term that has double quotation marks in it, I get no results.
For example:
דפ"ר
just note that HebMorph is not free for commercial use
from HebMorph website:
If you are developing a commercial application, please contact us to
discuss a commercial license. This helps us support development of
future versions that make Hebrew search even better. Paid licenses are
bundled with a proprietary dictionary, which replaces the AGPL3'd
hspell used by the open-source version, as well as integration
support.
also, when I debug the search I can clearly see that the word is already escaped (דפ\"ר)
Meaning: I can see the slash being added to the string, but still, no value is being returned.
Lucene Search Engine results Hebrew
Hi, I have implemented Lucene Search Engine results in my website, and it works flawlessly, except one distinct issue: When I try to search a Hebrew term that has double quotation marks in it, I get no results. For example: דפ"ר
this word should return results, but it doesn't.
Note: wild card works: דפ*
Any thoughts?
thanks, Rotem
You can try to use escape function - please see Lucene documentation https://lucene.apache.org/core/294/queryparsersyntax.html
Rotem,
Are you using hebrew analyser? See https://our.umbraco.com/packages/developer-tools/hebrew-search/ this may get round the problem. Ideally when doing multilingual you should use the language specific analyser if available.
Regards
Ismail
just note that HebMorph is not free for commercial use
from HebMorph website:
ah did not know that good spot.
Hi,
Thank you for the answers. I tried https://our.umbraco.com/packages/developer-tools/hebrew-search/
and it does not solve the issue :(
also, when I debug the search I can clearly see that the word is already escaped (דפ\"ר) Meaning: I can see the slash being added to the string, but still, no value is being returned.
any other thoughts? :)
thanks
Rotem,
I would reach out to itamar https://twitter.com/synhershko he ported lucene to lucene.net and put together HebMorph also he is native hebrew speaker.
Regards
Ismail
Thanks, I marked your answer as solution, but unfortunately, Itamar did not replay, so I guess i'll have to face this one myself.
:)
is working on a reply...