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

How can I store an array of values into one index document in Zend Lucene?

I've got a database with a list of registrations. Each of the registrations has 0..* tickets codes. How can I store it into an index document to be able to find a registration by one of the codes?
Ivan Lukasevych
  • 183
  • 1
  • 1
  • 9
0
votes
1 answer

Boolean NOT is not working with Date Range Query in Lucene.net v3.0.3.0

I am using Lucene.net v3.0.3.0 for indexing and searching, I have "CreateDateTime" field which store document creation datetime.I would like to Create DateTime range query with boolean "NOT" condition. Means I would like to retrieve all those…
0
votes
2 answers

Zend Lucene search relevancy

What are the best practices to configure Zend Lucene to make the search results more relevant? i have the following fields and document type productname (Text) description (Text) category (Keyword) Please give some sample codes.
Sreejith Sasidharan
  • 1,318
  • 5
  • 25
  • 46
0
votes
1 answer

How can we do whole site reindexing of lucene search

public function searchIndex($entity) { //http://framework.zend.com/manual/2.0/en/modules/zendsearch.lucene.searching.html# //http://stackoverflow.com/questions/7805996/zend-search-lucene-matches …
Ravi Mule
  • 404
  • 3
  • 16
0
votes
0 answers

Java Spell Check program incorporating lucene SpellChecker 4.2 and above.

I have searched for this topic before and all the existing answers in stackoverflow have issues with the Standard analyzer. Could anybody please share a standalone code that uses the Spellchecker class for coming up with DID YOU MEAN RESULTS
0
votes
1 answer

Extending / changing how Zend_Search_Lucene searches

I am currently using Zend_Search_Lucene to index and search a number of documents currently at around a 1000 or so. What I would like to do is change how the engine scores hits on a document, from the current default. Zend_Search_Lucene scores on…
Grant Collins
  • 1,781
  • 5
  • 31
  • 47
0
votes
1 answer

Zend_Search_Lucene 1.12 Codeigniter with Arabic

I am using Zend_Search_lucene 1.12 with codeignter for searching English & Arabic data, English works well but I get wrong results with Arabic. this is my code Zend_Search_Lucene_Analysis_Analyzer::setDefault( new…
0
votes
1 answer

Zend service solr update document

In Zend_Service_Solr I can add or delete a record. $solr->addDocument($document); Is there any way that I can update a record. I couldn't find any document for that. Or is there any extension for doing the same.
0
votes
1 answer

How to optimize indexing of large number of DB records using Zend_Lucene and Zend_Paginator

So I have this cron script that is deployed and ran using Cron on a host and indexes all the records in a database table - the index is later used both for the front end of the site and the backed operations as well. After the operation, the index…
0
votes
1 answer

Query for a exact string in Zend Lucene PHP

I am using the Zend Search Lucene. However I am having a little trouble. I wish to query the index for the exact string so page_name IS test123, not any fuzzy match. Currently I have: $hits = $index->find('page_name:"test123"'); And advice…
Podlsk
  • 127
  • 2
  • 2
  • 6
0
votes
1 answer

Using Zend Search Lucene, is it possible to commit changes without overwriting the entire index?

I have been tasked to implement a search functionality on a website containing roughly 300 dynamic pages. Using Zend Search Lucene (a lifesaver), I have accomplished that. But now comes an issue with moving everything into production. The website is…
0
votes
1 answer

Escape only particular special chars

I'm using QueryParser::parse() method to get a query from a string search term for my ZendSearch Lucene index. But I've a problem with the following query: +php +5.7.1) This throws the QueryParserException with message: Syntax Error: mismatched…
TiMESPLiNTER
  • 5,741
  • 2
  • 28
  • 64
0
votes
1 answer

Zend Lucene search only in specified fields with a filter

I use ZF2 Search Lucene for searching the products on the site. I need to search the products using user's input text, and filter the result by several parameters such as Category and Type by id. But the catch is that user's input are searched in…
Alexey Kosov
  • 3,010
  • 2
  • 23
  • 32
0
votes
1 answer

Zend Lucene displays blank screen when no results found

When I submit a query to Zend_Lucene with a string that exists in the index, the results are displayed as expected, however when string is not found, I get a blank page with no error messages. Code used as below: require_once…
pixel_paul
  • 21
  • 6
0
votes
1 answer

ZendSearch in Zend Framework 2

I'm trying to get ZendSearch working in Zend Framework 2. I required it using composer "require" : { "php" : ">=5.3.3", "zendframework/zendframework" : "2.2.*", "zf-commons/zfc-twig" : "dev-master", "zendframework/zendsearch" :…
lc_ik
  • 124
  • 5