Extension talk:Lucene-search

Jump to: navigation, search

About this discussion

Archives 

Archive


By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

How do you start or enable "Did you mean" feature with Lucene-search?

1
121.244.152.202 (talkcontribs)

Can someone please help me enable this feature.

I use Mediawiki 1.18, with Lucene-search 2.1.3 and MWsearch 1.21.

Reply to "How do you start or enable "Did you mean" feature with Lucene-search?"
82.218.136.35 (talkcontribs)

i'me useing crontab to generate every day a new index.

30 1 * * * /etc/init.d/lsearch stop && cd /usr/local/search/ls2 && /usr/local/search/ls2/build > /dev/null 2>&1 && /etc/init.d/lsearch start

every day new files and folders are generated in the update folder: wiki wiki.hl wiki.links wiki.related wiki.spell /usr/local/search/ls2/indexes/update/wiki.related/20131116013015

can i save delete all (or only old folders)? is there an automated cleanup script to check for the old files and folders? my installation is about 2 years and a have tons of old files an folders!

regards, josef lahmer (josy1024@gmail.com)

Reply to "cleanup old indexes"
Juandev (talkcontribs)

Not available in download, where to find it?

Reply to "Not available"

How do I get the lsearchd script to run in Upstart?

1
24.99.91.221 (talkcontribs)

I cannot get it to work and am a sad panda. I am using CentOS 6.4. It runs fine when I run it in a screen, but I'd like to run it on boot for obvious reasons.

Reply to "How do I get the lsearchd script to run in Upstart?"

Special use case documentation of Lucene for Mediawiki ?

1
Fractaliste (talkcontribs)

Hi,

Is there a documentation of the special syntax I can use on my wiki search form ? I'm interested in special feature provided by Lucene for Mediawiki use like ":incategory" options or other...

Reply to "Special use case documentation of Lucene for Mediawiki ?"

configure build problem ... possibly related to PHP BOM prepending

2
Freddo411 (talkcontribs)

Hello,

I am running into a blocking issue when trying to run ./build. The specific error copied below. I am using version 2.1.3

I am also noticing a number of oddities that may be related.

1) the inclusion on BOM markers in config.inc and lsearch-global.inc. Specifically, in config.inc

  -- a BOM between "dbname=" and "wikidb"
  -- a BOM after "wgScriptPath=".  Note, the correct value from LocalSettings.php is 
  -- a BOM between "wgServer=" and "https://newwiki.west.isilon.com"

2) the xml dump from media wiki also includes a prepended BOM. I tried this outside of the Lucene context and also consistently got a BOM prepended by PHP.

Any help or clues would be appreciated.


MediaWiki lucene-search indexer - rebuild all indexes associated with a database.
Trying config file at path /root/.lsearch.conf
Trying config file at path /usr/local/lucene-search-2.1.3/lsearch.conf
MediaWiki lucene-search indexer - index builder from xml database dumps.

0    [main] INFO  org.wikimedia.lsearch.util.Localization  - Reading localization for En
68   [main] INFO  org.wikimedia.lsearch.ranks.Links  - Making index at /usr/local/lucene-search-2.1.3/indexes/import/wikidb.links
116  [main] INFO  org.wikimedia.lsearch.ranks.LinksBuilder  - Calculating article links...
192  [main] FATAL org.wikimedia.lsearch.importer.Importer  - Cannot store link analytics: Content is not allowed in prolog.
java.io.IOException: Trying to hardlink nonexisting file /usr/local/lucene-search-2.1.3/indexes/import/wikidb
	at org.wikimedia.lsearch.util.FSUtils.createHardLinkRecursive(FSUtils.java:97)
	at org.wikimedia.lsearch.util.FSUtils.createHardLinkRecursive(FSUtils.java:81)
	at org.wikimedia.lsearch.importer.BuildAll.copy(BuildAll.java:157)
	at org.wikimedia.lsearch.importer.BuildAll.main(BuildAll.java:112)
194  [main] ERROR org.wikimedia.lsearch.importer.BuildAll  - Error during rebuild of wikidb : Trying to hardlink nonexisting file /usr/local/lucene-search-2.1.3/indexes/import/wikidb
java.io.IOException: Trying to hardlink nonexisting file /usr/local/lucene-search-2.1.3/indexes/import/wikidb
	at org.wikimedia.lsearch.util.FSUtils.createHardLinkRecursive(FSUtils.java:97)
	at org.wikimedia.lsearch.util.FSUtils.createHardLinkRecursive(FSUtils.java:81)
	at org.wikimedia.lsearch.importer.BuildAll.copy(BuildAll.java:157)
	at org.wikimedia.lsearch.importer.BuildAll.main(BuildAll.java:112)

Extirpate (talkcontribs)

i have the same problem. and i solved it. the extension "semantic comments" caused this problem.

Reply to "configure build problem ... possibly related to PHP BOM prepending"
2001:558:1414:0:0:5EFE:A0A:753A (talkcontribs)

Running Ubuntu 10.04 Java JDK 7 Ant 1.9.1

./lsearchd stops at this line

1213 [Thread-5] INFO  org.wikimedia.lsearch.interoperability.RMIServer  - RemoteSearchable<wikidb.spell>$0 bound

any help getting the daemon started is appreciated

Reply to "Daemon not starting"
195.124.31.219 (talkcontribs)

Hi all,

whenever I start searching, I get:

117919 [pool-2-thread-4] INFO org.wikimedia.lsearch.frontend.HttpHandler - query:/prefix/wiki/Ddcr?namespaces=0&offset=0&limit=10&version=2.1&iwlimit=10&searchall=0 what:prefix dbname:wiki term:Ddcr java.lang.RuntimeException: Index wiki.prefix doesn't exist

from the search server.

I went all the way down: ./configure /var/www/wiki && ./build

Any ideas?

Reply to "Index doesn't exist"
Serdtsev (talkcontribs)

I have:

one server;

two wiki on this:

/var/www/vhost/enwik

/var/www/vhost/ruwik


and two different databases on this server:

wmos_ru

wmos_en


-- shared db for users and any image....

How I must setting that lucene work correct for the two bases?

Reply to "two bases DB"
Nick1092 (talkcontribs)

when i run ./configure /var/www/mediawiki/ i get this bash: ./configure: /bin/bash^M:bad interpreter: No such file or directory.

i tried running dos2unix but doesn't solve the problem.

Any tips will be great, thanks in advance guys.

Using CentOS6 RHEL lucene search 2.1 mediawiki 1.20.4

Nick1092 (talkcontribs)

nvm, fix the problem , apparently it's the path inside the configure script problem, it's ok now after i change it.

Reply to "problem with ./configure"