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

How to apply search query for special characters like @ in Zend_Search_Lucene?

In the Zend_Search_Lucene I am using below code for indexing and I have changed default analyzer to search for numeric values. public function executeIndexIT() { $path = '/home/project/mgh/lib/'; set_include_path(get_include_path() .…
Manojkumar
  • 1,351
  • 5
  • 35
  • 63
2
votes
2 answers

Using Zend Search Lucene with Symfony 2

I have a searchform in my webapp where users can search others by name, clubname, ... This is the code I'm using for the search but it's not giving me any 'hits'. $search = $this->get('ewz_search.lucene'); $query = new…
mattyh88
  • 1,585
  • 5
  • 26
  • 48
1
vote
0 answers

Zend_Search_Lucene - weird behaviour for Wildcard search and "numeric" string

Weird issue I get every time I search "11.11" or "22.22" etc... No problem if I search for "aa.aa" but when I put only integers into my string, I get the following exception: Wildcard search is supported only for non-multiple word terms My…
1
vote
0 answers

bitset_to_array causing memory limit error in 64bit php

I'm trying to append data to a Zend_Search_Lucene index but I'm getting a memory limit error on a line of on line 1584 of Zend_Search_Lucene_Index_SegmentInfo that has this $bitCount = count(bitset_to_array($delBytes)); It runs fine on our…
Akeem
  • 7,897
  • 5
  • 32
  • 41
1
vote
1 answer

How to get first 20 documents in Zend lucene search when no search term is provided?

I have a fairly new grasp of Zend_Search_Lucene, and how to build and search through documents added to indicies, but I want to know if it is possible to return documents if no search term is provided at all. I know that sounds strange, and probably…
Chris Kempen
  • 9,491
  • 5
  • 40
  • 52
1
vote
3 answers

Zend_Search_Lucene on Leopard: problem

Leopard 10.5.6 Macbook Zend 1.6, Apache 2, PHP 5.2.5 I cannot seem to do indexing, using Zend_Search_Lucene api. Building or opening indices on generates the following exception message: string(30) "Wrong segments.gen file format" However, the…
voravor
  • 41
  • 1
  • 4
1
vote
1 answer

Boosting fields in Zend Search Lucene

When I look at the Zend framework documentation, Zend Search Lucene has the ability to boost search terms. Is there a way to boost fields? That is, make hits in a field more relevant than others? Example: Document1 Name: Jane Doe Description: Wife…
developarvin
  • 4,940
  • 12
  • 54
  • 100
1
vote
1 answer

How to scale up an Zend Framework Application that uses Zend_Search_Lucene

I've recently released an ZF app to production environment, and I'm getting some troubles because this app is running in three different instances behind a load balancer. These three app instances are sharing the same lucene indexes through NFS.…
texai
  • 3,696
  • 6
  • 31
  • 41
1
vote
1 answer

Using different analyzers on Zend Lucene

I'm trying to create an index using Zend Lucene. In Zend's manual (http://framework.zend.com/manual/en/zend.search.lucene.extending.html) it is described how to use a default analyzer: Zend_Search_Lucene_Analysis_Analyzer::setDefault( new…
noamicko
  • 174
  • 1
  • 5
1
vote
2 answers

How to cache Zend Lucene search results in Code Igniter?

I'm not sure if this is the best way to go about this, but my aim is to have pagination of my lucene search results. I thought it would make sense to run the search, store all the results in the cache, and then have a page function on my results…
Robin
  • 3,533
  • 4
  • 18
  • 8
1
vote
2 answers

Do I have to convert my PHP app into MVC in order to use Zend_search_lucene?

I have finished writing my own web application now. It is written in PHP with MYSQL DB and I did not use any MVC framework at all. Now I want to add a local search functionality for my app and from looking at the other posts here, Zend_Search_Lucene…
Benny Tjia
  • 4,853
  • 10
  • 39
  • 48
1
vote
1 answer

PHP: Checking if a directory contains a Zend_Search_Lucene index

I am looking for a reliable way to check to see if a directory contains a Zend_Search_Lucene index. Currently, the only way I have managed to work this out is to check the contents of an exception returned to me using the following…
tombazza
  • 646
  • 9
  • 24
1
vote
2 answers

Symfony and Zend Lucene highlighting

I use symfony 1.4 and I use Zend Lucene search like in Jobbet And I need to make Search Results Highlighting, I read this , but I do not understend how it make in my case with symfony( $ highlightedHTML = $ query-> highlightMatches…
1
vote
2 answers

Updating indexed documents of Zend Search Lucene indexes

I have already read this question Creating and updating Zend_Search_Lucene indexes. But it has failed to answer to my problem. This article from zend, tells that updating the document is not possible. To update effectively, every document have to be…
mrN
  • 3,734
  • 15
  • 58
  • 82
1
vote
5 answers

Check if a field/propertry exists in a variable of type object

I am using Zend_Search_Lucene, to index my website. My site indexes are not entirely similar. Some have, few fields, and some have many fields. I am trying to create a similar index through different types of table, that's why i am encountering this…
mrN
  • 3,734
  • 15
  • 58
  • 82