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
1
vote
0 answers

Laravel 5.1 - laravel-lucene-search

I am trying to use https://github.com/nqxcode/laravel-lucene-search My composer.json looks like this: "require": { "php": ">=5.5.9", "laravel/framework": "5.1.*", "bestmomo/scafold": "dev-master", "laravel/cashier":…
Nikhil Agarwal
  • 410
  • 4
  • 15
1
vote
0 answers

Zend search Lucene php - Manage synonyms

I use zend search lucene to create a search engine for a website. I want to let the user use synonyms for his request. For exemple, if he search "jeans", he should be able to find things about "jeans" and "pants". Is there anything in zend lucene…
Prygan
  • 95
  • 1
  • 9
1
vote
1 answer

ZendSearch Lucene boolean query doesn't correct work with numbers

I'm new with Zend Framework 2 and ZendSearch Lucene. My database table has three columns with integers, the first one is for the id. In the second is the publish value (1 to 3), in the third is the category value (1 to 5). The Table looks like…
godi
  • 21
  • 3
1
vote
2 answers

How to find similar/related text with Zend Lucene?

Say I need to make searching for related titles just like stackoverflow does before you add your question or digg.com before submitting news. I didn't find a way how to do this with Zend Lucene. There are setSlop method for queries, but as I…
Arty
  • 5,923
  • 9
  • 39
  • 44
1
vote
1 answer

Zend_Search_Lucene View entire Cache

Is it possible to view the entire cache in a laid out clear view of what is indexed?
azz0r
  • 3,283
  • 7
  • 42
  • 85
1
vote
1 answer

Zend_Search_Lucene failing to return documents

I am struggling with a bug/problem that I am having trouble with when using Zend_Search_Lucene. Now I have 2 indexes that I search one that is parsed html pages/text that I use the Zend_Search_Lucene_Document_Html::loadHTML() function to read the…
Grant Collins
  • 1,781
  • 5
  • 31
  • 47
1
vote
1 answer

locking a lucene folder

I am writing a wrapper around Zend's lucene implementation and wanted to add a function rebuildIndex() which reads all relevant fields from the database and re-creates the index file in a temporary folder. When the operation is finished, I want to…
soulmerge
  • 73,842
  • 19
  • 118
  • 155
1
vote
2 answers

Wildcard Query in Zend Lucene

$index = Zend_Search_Lucene::open("/data/my_index1"); $doc = new Zend_Search_Lucene_Document(); $doc->addField(Zend_Search_Lucene_Field::Text('type','auto')); $index->addDocument($doc); $term = new Zend_Search_Lucene_Index_Term('auto*'); $query…
siva kiran
  • 11
  • 2
1
vote
2 answers

How to call a Zend lucene search function?

I inherited a Zend project devoid of comments and I didn't get to talk to the previous developer. Since I have no Zend experience I'm having some issues :) I'd like to print out some variables inside an function that indexes items from the site…
stef
  • 26,771
  • 31
  • 105
  • 143
1
vote
1 answer

Zend_Search_Lucene search in array

Is there a way to store an array as a document field and then query that array? I've got a collection of items, which are tagged. I'd like to be able to search all items that match for example tags 55 and 67. How would I achieve this?
Andrei Serdeliuc ॐ
  • 5,828
  • 5
  • 39
  • 66
1
vote
0 answers

zendframework/zendsearch package unavailable when trying to install it via composer

anyone please give me detail instructions on installing ZendSearch package as the official documentation is incomplete.. Zendsearch package unavailable when trying to install it via composer. The composer returned with the message "The requested…
SudarP
  • 906
  • 10
  • 12
1
vote
3 answers

Install ZendSearch in ZF2 skeleton application

I'm trying to add Lucene search to my ZF2 project. The package is not listed on the ZF2 packages page. I tried to workaround this by installing it manually from GitHub. I added this to my composer.json: "repositories": [{ "type": "package", …
Michael Thessel
  • 706
  • 5
  • 20
1
vote
1 answer

How to control scoring and ordering in Zend_Search_Lucene, so one field is more important than the other?

From what I understand, after reading documentation (especially scoring part), every field I add has the same level of importance when scoring searched results. I have following code: protected static $_indexPath =…
Karol
  • 7,803
  • 9
  • 49
  • 67
1
vote
0 answers

When to create index and update document in Zend Lucene?

I fiddling around with Zend Lucene and I have a question on it. When do you create an index and update document in Zend Lucene? Do you create an index whenever you add a new record / row and update the document whenever you update an existing record…
John Doe
  • 649
  • 2
  • 8
  • 17
1
vote
1 answer

Indexing and Searching Special Characters with Zend Search Lucene

When I search for special characters such as "#" no results come up. Note that I have escaped the query string. However, when combined with a letter like "c#" Lucene finds the term. Is there any way to search for single special characters? Here's…