Running Luke debug tool for Lucene
# help-with-other
w
Hi, trying to use the Luke tool supplied with Lucene to investigate search issues on an umbraco site but can't get it running. I get the following error when running Luke.cmd (Windows 11)- "Could not create the Java virtual machine. A fatal exception has occurred. Program will exit." Has anybody else encountered this before? I've increased the JS heap size to 1 gig which is the most common suggestion for this error, but it's still occurring.
Did also come across https://github.com/marciogoularte/Luke.Net which says supports lucene 4.8 so might preclude having to install java soley for luke tool.... ๐Ÿค”
w
Thanks @Mike Chambers I was able to get it working with this version - I was also having trouble getting the latest version of Java installed which also resolved the issue with Luke v9/10, however these are incompatible with the indexes Umbraco generates
m
Suporised actually to see that luke 4.8 reports that Umb 13 indexes have a lucene format of 4.2! ๐Ÿคจ
would have thought that https://github.com/umbraco/Umbraco-CMS/blob/ba58c6323c3944b371e9357ccc4019c396b7a44e/src/Umbraco.Examine.Lucene/DependencyInjection/ConfigureIndexOptions.cs#L41
LuceneInfo.CurrentVersion
would be
LUCENE_48
for the 4.8 nuget package?? Though looks like it's a Luke reporting issue.. as interrogating
LuceneInfo.Current
version on the site does give
LUCENE_48
๐Ÿ™‚ https://cdn.discordapp.com/attachments/1326532588722196550/1326883615690199103/image.png?ex=67810c2a&is=677fbaaa&hm=dc1a695191c8f831d59e534ddaa24f159618fdbdd20221a8f933b9a2cee96382&
l
Why don't you use the backoffice of Umbraco to check the indexes, that works pretty well in most cases ๐Ÿ™‚
m
for the same reason I use any WYSIWYG UI ๐Ÿ™‚ the query builder (no need for lucene query knowledge) and actually seeing what's in the index not just a result set etc....
2 Views