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
0
votes
1 answer

Sort a Range Query Using Zend Lucene

According to the documentation, Zend Lucene is supposed to sort lexicographically. I am finding this is not the case. If I have a query 'avg:[050 TO 300]', yes it will return all values in that range, but it will sort them according to the document…
Richard Parnaby-King
  • 14,703
  • 11
  • 69
  • 129
0
votes
1 answer

Zend Lucene Lexicographical Range Search Returning Non-Relevant Results

I am using Zend Lucene to build a search feature for my website. All well and good. Understanding that Lucene does searches lexicographically (e.g. 1, 110, 1111444, 2, 3, 4, 499238492834798, 5, etc) I have padded my numbers to 3 digits (ranging from…
Richard Parnaby-King
  • 14,703
  • 11
  • 69
  • 129
0
votes
2 answers

Zend Lucene search related fields?

I have a lot of paired fields (hoursDistance1, cityName1, hoursDistance2, cityName2, hoursDistance3, cityName3, etc.). What query do I need to search for so that Lucene scores based on both fields having the correct terms instead of just one of…
Richard Parnaby-King
  • 14,703
  • 11
  • 69
  • 129
0
votes
0 answers

ZF highlighter phrase mark

I have this code: $query = '"ala ma"'; try { $index = Zend_Search_Lucene::open(ROOT_PATH.'/data'); }catch(Zend_Search_Lucene_Exception $e){ $index = Zend_Search_Lucene::create(ROOT_PATH.'/data'); } …
micenst
  • 1
  • 1
0
votes
3 answers

How can to group lucene's results?

My application indexes discussion threads. Each entry in the discussion is indexed as a separate Lucene document with a common_id field which can be used to group search hits into one discussion. Currently when the search is performed, if a thread…
Roman
  • 10,309
  • 17
  • 66
  • 101
0
votes
2 answers

Zend Search Lucene HTTP 500 Internal Server Error while bulk indexing on small tables

I am just getting started with Zend Search Lucene and am testing on a GoDaddy shared Linux account. Everything is working - I can create and search Lucene Documents. The problem is when I try to index my whole table for the first time I get a HTTP…
Kyle Noland
  • 4,788
  • 6
  • 30
  • 33
0
votes
1 answer

Magento Lucene Search Exception - Wrong segments.gen file format

A Magento installation hit 100% disk usage. After rectifying this issue, it seems that Lucene search is now offline. I'm not able to rebuild the search index as I am simply presented with this error: [ssh]$ php shell/lucene-tool.php --removeall 1 …
Moose
  • 610
  • 1
  • 14
  • 28
0
votes
1 answer

How to use Zend_Search_Lucene as a separate component outside Zend Framework?

As the optimization process of Zend_Search_Lucene index file using the optimize() method takes few seconds to complete, I want to create a Cron Job so that the optimization process of Index file will be done automatic everyday. But I am not able to…
Debesh Nayak
  • 244
  • 4
  • 16
0
votes
1 answer

Using temporary table for zend searches then merging with dataset

In my current setup i have a zend lucene search index which stores the primary keys of my_table rows in the index, along with other unstored fields. Upon a search the index is queried, the results of which then are looped through and inserted into…
studioromeo
  • 1,563
  • 12
  • 18
0
votes
0 answers

Zend_Search_Lucene_Index_Writer error when saving a product in osCommerce

I am receiving the following error when saving a product in osCommerce. The script has been modified to index the product in a Lucene index. This error only occurs intermittently, ie. I can resave the product and it gets indexed correctly, while…
Billy
  • 788
  • 1
  • 8
  • 17
0
votes
1 answer

Is There a way to use Zend Search Lucene in a way similar to Useing the WHERE LIKE sql in Databases?

$select = $this->_db->select()->from($this->_name,array("id","fullname","username","email"))->where("fullname LIKE '$query%'"); I am using this SQL statement currently to power my Ajax auto suggest, if i type in "a" it gets me results starting with…
Abdullah Khan
  • 2,384
  • 2
  • 22
  • 32
0
votes
1 answer

Exception when using highlightMatches function of Zend_Search_Lucene_Search_QueryParser

This piece of code from my controller: $index = new Zend_Search_Lucene(Yii::getPathOfAlias('application.' . $this->_indexFiles)); $results = $index->find($term); $query =…
StalkAlex
  • 743
  • 7
  • 16
0
votes
1 answer

Using Zend Lucene in Cakephp

I am creating a webapp in Cakephp, and am thinking of implementing a search function in it. I read about Zend Lucene providing the search capabilities for native PHP webapps. I have my web pages all created without using any kind of database…
vikmalhotra
  • 9,981
  • 20
  • 97
  • 137
0
votes
1 answer

Searching for multiple words in on field in Lucene index

I'm having problem with Zend_Search_Lucene. I have few documents with field "tags" in index. Documents "tags" have following values: tag1 tag2 tag3 tag1 tag4 I would like to find document only with tag1 AND tag4 so I use query "+tags:tag1…
Maciej
  • 53
  • 1
  • 8
0
votes
1 answer

Zend Search Lucene case insensitive search doesn't work

I've got a Search class, which has public function __construct($isNewIndex = false) { setlocale(LC_CTYPE, 'ru_RU.UTF-8'); $analyzer = new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsensitive(); $morphy = new…
Ivan Lukasevych
  • 183
  • 1
  • 1
  • 9