fergiemcdowall / norch

A search server that can be installed with npm
655 stars 45 forks source link

How to get folder structure in search-index and norch to work together #137

Closed eklem closed 7 years ago

eklem commented 7 years ago

Seems norch has a slightly different structure now. How do I make it work with an index created by search-index? Or is it another idea behind?

norch structure after starting norch

$ ls -laR norch-index
norch-index:
total 16
drwxrwxr-x  3 eklem eklem 4096 Dec 22 09:37 .
drwxr-xr-x 20 eklem eklem 4096 Dec 22 09:40 ..
drwxr-xr-x  2 eklem eklem 4096 Dec 22 09:37 data
-rw-rw-r--  1 eklem eklem    0 Dec 22 09:37 error.log
-rw-rw-r--  1 eklem eklem  127 Dec 22 09:37 info.log

norch-index/data:
total 20
drwxr-xr-x 2 eklem eklem 4096 Dec 22 09:37 .
drwxrwxr-x 3 eklem eklem 4096 Dec 22 09:37 ..
-rw-rw-r-- 1 eklem eklem    0 Dec 22 09:37 000003.log
-rw-rw-r-- 1 eklem eklem   16 Dec 22 09:37 CURRENT
-rw-r--r-- 1 eklem eklem    0 Dec 22 09:37 LOCK
-rw-rw-r-- 1 eklem eklem   57 Dec 22 09:37 LOG
-rw-rw-r-- 1 eklem eklem   50 Dec 22 09:37 MANIFEST-000002

search-index structure

$ ls -laR si
si:
total 5480
drwxr-xr-x  2 eklem eklem    4096 Dec 22 09:36 .
drwxr-xr-x 20 eklem eklem    4096 Dec 22 09:40 ..
-rw-rw-r--  1 eklem eklem  810243 Dec 22 09:37 000023.log
-rw-rw-r--  1 eklem eklem 2150978 Dec 22 09:36 000025.ldb
-rw-rw-r--  1 eklem eklem 2158427 Dec 22 09:36 000026.ldb
-rw-rw-r--  1 eklem eklem  460368 Dec 22 09:36 000027.ldb
-rw-rw-r--  1 eklem eklem      16 Dec 22 09:36 CURRENT
-rw-r--r--  1 eklem eklem       0 Dec 22 09:33 LOCK
-rw-rw-r--  1 eklem eklem    3518 Dec 22 09:36 LOG
-rw-rw-r--  1 eklem eklem     968 Dec 22 09:33 LOG.old
-rw-rw-r--  1 eklem eklem    1489 Dec 22 09:36 MANIFEST-000010
fergiemcdowall commented 7 years ago

Basically, the NORCH_HOME dir now contains the index and the log files (before it was just the index)

So in other words the data dir is same as the search-index dir