Questions tagged [zend-search-lucene]

Zend Search Lucene is a PHP library for creating and searching full text indexes using the Lucene index format.

Part of the Zend Framework, Zend Search Lucene allows the creation and searching of full text indexes in PHP. This goes above and beyond the full text search offered by MySQL.

Although Zend Search Lucene is part of the Zend Framework, it can also be used as a standalone library in other projects or with alternative frameworks such as Symfony.

193 questions
152
votes
2 answers

Retrieve Laravel Model results based on multiple ID's

I have implemented ZendSearch into my Laravel application. I am using it as my search engine where users will type a search word, and then ZendSearch will return me an array of results ordered by relevance. However, the array that ZendSearch…
justinl
  • 10,448
  • 21
  • 70
  • 88
12
votes
2 answers

Zend_Search_Lucene vs SOLR

I have recenlty stumbled into Zend Lucene port of Lucene project. I have a little bit experience with SOLR so I would like to know what is the difference between two of them especially from performance and installation side. As much as I know SOLR…
spacemonkey
  • 19,664
  • 14
  • 42
  • 62
9
votes
1 answer

zend lucene problem with the word "mortgage"

I'm using Porter Stemmer to stem the words, and here's a problem I'm running into: Word "mortgage" is correctly stemmed to "mortgag" Word "mortgagee" is (arguably incorrectly) stemmed to "mortgage" There are approximately 100 documents with the word…
8
votes
1 answer

Creating and updating Zend_Search_Lucene indexes

I'm using Zend_Search_Lucene to create an index of articles to allow them to be searched on my website. Whenever a administrator updates/creates/deletes an article in the admin area, the index is rebuilt: $config =…
typeoneerror
  • 55,990
  • 32
  • 132
  • 223
7
votes
2 answers

Zend Lucene or sphinx?

I am building a system that has database operations that has millions of records.I am using Zend Framework in all part of my project.I wanted to use a search indexing technique but have you got any advice on this?which technique should i use? Thanks…
Hüseyin BABAL
  • 15,400
  • 4
  • 51
  • 73
7
votes
2 answers

Zend Framework 2 Search Lucene?

ZF1 had a gread search lucene implementation. is there something similar for ZF2? I can't find anything...
Andreas Linden
  • 12,489
  • 7
  • 51
  • 67
6
votes
2 answers

invalid characters for lucene text search

On my IndexController i have public function buildAction() { $index = Zend_Search_Lucene::create(APPLICATION_PATH . '/indexes'); foreach ($this->pages as $p) { $doc = new Zend_Search_Lucene_Document(); …
S L
  • 14,262
  • 17
  • 77
  • 116
6
votes
1 answer

Zend Search Lucene and Accented Characters

I'm trying to find a way in Zend_Search_Lucene to pull off the following scenario: Let's say we have a user and her name is Aïcha (note the special character). If I'm searching the index for Aicha (without the special derivative of i), I'd like for…
Gary M
  • 61
  • 2
6
votes
2 answers

performance comparision between Zend Lucene and Java Lucene

Zend Lucene and Java Lucene are built in PHP and java repectively, and PHP language has a higher level than java. Just wondering How big the performance difference among these two, regarding to index building and data searching? Is it much more…
Capitaine
  • 1,923
  • 6
  • 27
  • 46
6
votes
3 answers

Zend Lucene - cannot search numbers

Using Zend Lucene I cannot search numbers in description fields Added it like this: $doc->addField(Zend_Search_Lucene_Field::Text('description', $current_item['item_short_description'], 'utf-8')); Googling for this showed that applying following…
Pavel Dubinin
  • 2,410
  • 1
  • 24
  • 28
5
votes
2 answers

Using Solr and Zends Lucene port together

Afternoon chaps, After my adventures with Zend-Lucene-Search, and discovering it isn't all its cracked up to be when indexing large datasets, I've turned to Solr (thanks to Bill Karwin for that :) ) I've got Solr indexing the db far far quicker…
Tom
  • 4,257
  • 6
  • 33
  • 49
5
votes
1 answer

Performance and bottle neck of Zend_Search_Lucene?

I've been using nutch for a while,untile recently that I know about this resort. How is its performance,and what's the file size limit it can support? Besides,how to delete or update an index instead of re-index each time there is a modification?
omg
  • 136,412
  • 142
  • 288
  • 348
4
votes
4 answers

How to find "FooBar" when seaching "Foo Bar" in Zend Lucene

I'm building a search function for a php website using Zend Lucene and i'm having a problem. My web site is a Shop Director (something like that). For example i have a shop named "FooBar" but my visitors seach for "Foo Bar" and get zero results.…
Daniel
  • 341
  • 6
  • 24
4
votes
1 answer

Zend Lucene query

I'm adding these fields when I store data in Lucene: $index->addField(Zend_Search_Lucene_Field::Keyword('id', $entry->id)); $index->addField(Zend_Search_Lucene_Field::Keyword('type', $entry->type)); How can make a query to retrieve only data with a…
Alex
  • 66,732
  • 177
  • 439
  • 641
4
votes
3 answers

Indexing large DB's with Lucene/PHP

Afternoon chaps, Trying to index a 1.7million row table with the Zend port of Lucene. On small tests of a few thousand rows its worked perfectly, but as soon as I try and up the rows to a few tens of thousands, it times out. Obviously, I could…
Tom
  • 4,257
  • 6
  • 33
  • 49
1
2 3
12 13