mirror of https://github.com/apache/lucene.git
Revert "LUCENE-9448: clean up unused start scripts for luke."
This reverts commit 16104090fb
.
This commit is contained in:
parent
1e7d8146ff
commit
2160d7239d
|
@ -30,12 +30,9 @@ Luke (atop Swing) is the GUI tool for introspecting your Lucene index. It allows
|
|||
|
||||
## Launching Luke
|
||||
|
||||
Luke requires Java 11 or above.
|
||||
|
||||
Using a binary release
|
||||
|
||||
The [Lucene Downloads](https://lucene.apache.org/core/downloads.html) page contains stable releases of Lucene including Luke. You can start it with:
|
||||
java -jar lucene-luke-x.x.x-standalone.jar
|
||||
The [Lucene Downloads](https://lucene.apache.org/core/downloads.html) page contains stable releases of Lucene including Luke. Download the respective release, unpack and run a shell or batch scripts inside the folder 'luke' (or directly with java -jar if you prefer it that way).
|
||||
|
||||
## Older releases
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
@echo off
|
||||
@setlocal enabledelayedexpansion
|
||||
|
||||
cd /d %~dp0
|
||||
|
||||
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xmx1024m -Xms512m -XX:MaxMetaspaceSize=256m
|
||||
|
||||
set CLASSPATHS=.\*;.\lib\*;..\core\*;..\codecs\*;..\backward-codecs\*;..\queries\*;..\queryparser\*;..\suggest\*;..\misc\*
|
||||
for /d %%A in (..\analysis\*) do (
|
||||
set "CLASSPATHS=!CLASSPATHS!;%%A\*;%%A\lib\*"
|
||||
)
|
||||
|
||||
start javaw -cp %CLASSPATHS% %JAVA_OPTIONS% org.apache.lucene.luke.app.desktop.LukeMain
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
LUKE_HOME=$(cd $(dirname $0) && pwd)
|
||||
cd ${LUKE_HOME}
|
||||
|
||||
JAVA_OPTIONS="${JAVA_OPTIONS} -Xmx1024m -Xms512m -XX:MaxMetaspaceSize=256m"
|
||||
|
||||
CLASSPATHS="./*:./lib/*:../core/*:../codecs/*:../backward-codecs/*:../queries/*:../queryparser/*:../suggest/*:../misc/*"
|
||||
for dir in `ls ../analysis`; do
|
||||
CLASSPATHS="${CLASSPATHS}:../analysis/${dir}/*:../analysis/${dir}/lib/*"
|
||||
done
|
||||
|
||||
LOG_DIR=${HOME}/.luke.d/
|
||||
if [[ ! -d ${LOG_DIR} ]]; then
|
||||
mkdir ${LOG_DIR}
|
||||
fi
|
||||
|
||||
nohup java -cp ${CLASSPATHS} ${JAVA_OPTIONS} org.apache.lucene.luke.app.desktop.LukeMain > ${LOG_DIR}/luke_out.log 2>&1 &
|
Loading…
Reference in New Issue