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

CakePHP with Lucene

I am trying to implement Lucene with cakephp and following this guide http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/ Am getting this error ConnectionManager::loadDataSource - Unable to import DataSource class…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
2
votes
1 answer

Use zend_lucene_search with Zend_Paginator cache

I want to cache my results from Zend_Lucene_Search using Zend_Paginator::setCache() I get the following error: Warning: fseek() expects parameter 1 to be resource, integer given Here is the portion of code: // Load index $index =…
2
votes
2 answers

Get total record count for a query in zend lucene search?

HI I have used "setResultSetLimit(1000)" method to limit results to 1000 records. The good thing is It helps to save server resources, but there is noway to get full record count for a query. Is any one know how to get full hit count? TX
chamantha
  • 21
  • 2
2
votes
1 answer

Can zend's lucene implementation be configured to use a mysql database instead of the file system?

Is there an option for Zend's lucene implementation (or a third-party plugin) that would allow me to put the lucene dictionary into a [MySQL] database? The reason I need to ask is that the database is the only common resource for our two otherwise…
soulmerge
  • 73,842
  • 19
  • 118
  • 155
2
votes
2 answers

Zend_Search_Lucene and range search

I have a bunch of int key fields in my index and trying to do a simple range search like this: `gender:1 AND height:[120 TO 180]` This should give me male in the height range 120 to 180. But for some reason i get this exception: `At least one range…
ranza
  • 21
  • 3
2
votes
2 answers

In Zend Lucene, how can I change the field which a query searches?

I am trying to create an "advanced search", where I can let the user search only specific fields of my index. For that, I'm using a boolean query: $sq1 = Zend_Search_Lucene_Search_QueryParser::parse($field1); // <- provided by user $sq2 =…
Alex J
  • 9,905
  • 6
  • 36
  • 46
2
votes
0 answers

How to implement boolean retrieval using hitcollector in below scenario

I am running my code on TREC documents and right now implementing scoring scheme to get number of relevant documents. However now i want to implement boolean retrieval, I am trying to use HitCollector. below is my code.. public class BatchSearch…
Explorer
  • 1,491
  • 4
  • 26
  • 67
2
votes
1 answer

Zend: index generation and the pros and cons of Zend_Search_Lucene

I've never came across an app/class like Zend Search Lucene before, as I've always queried my database. Zend_Search_Lucene operates with documents as atomic objects for indexing. A document is divided into named fields, and fields have…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
2
votes
1 answer

Text search technologies for mysql data

the task is to implement text search in MySQL in my project(PHP/Zend Framework 2 + MySQL). The issue is that text fields are not big at all, it is mostly VARCHAR fields or joined fields like city names, company names and so on, about 5-10 fields for…
Cassius
  • 153
  • 1
  • 14
2
votes
2 answers

Include zend framework into php project zend_search_lucene

I've searched for many info on the internet, also tried many various suggestions, but nothing seems to work as I need. So here is the problem: I want to use Zend_Search_Lucene to perform search in database, but I've stuck at the very begining..…
DadaB
  • 762
  • 4
  • 12
  • 29
2
votes
1 answer

Zend_Search_Lucene query parsing problem

Here's the setup, I have a Lucene Index and it works well with the 2,000 documents I have indexed. I have been using Luke (Lucene Index Toolbox, v.0.9.2) to debug queries, and am using ZF 1.9. The layout for my Lucene Index is as follows: I =…
Jesta
  • 1,458
  • 1
  • 13
  • 14
2
votes
3 answers

Zend Lucene fails all searches with special characters

if anyone knows a simple answer to this, I don't have to wade through creating an extra index with escaped strings and crying my eyes out while littering my pretty code. Basically, the Lucene search we have running cannot handle any non-letter…
John
  • 261
  • 1
  • 3
  • 16
2
votes
3 answers

Implement a search using zend

I have site which is managed using CMS entirely developed on zend. Now I have to Implement a search feature too. I'vent done anything related to search in zend. Some suggestions that I received is to implement a spider. The site will have plenty of…
harry
  • 1,410
  • 3
  • 12
  • 31
2
votes
2 answers

Zend_Search_Lucene - Can't create directory '/data/users_index'

I have a problem creating an index with Zend_Search_Lucene. Now, everything works fine on my local machine so I guess there is just an issue with file permissions on the webserver. Here is how I'm trying to create index in controller: $index =…
Richard Knop
  • 81,041
  • 149
  • 392
  • 552
2
votes
2 answers

how to remove unreadable characters in a context using PHP?

Hi am feeding context to zend_lucene_search and it can search for the word up to special characters and after that it is not searchable. for example: very well to the other job boards � one of the main things that has impressed is the variety of…