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

Zend Lucene - How to do query

My create index function is as bellow function create() { Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsensitive ()); $index = Zend_Search_Lucene::create('data/index'); …
angry kiwi
  • 10,730
  • 26
  • 115
  • 161
1
vote
1 answer

Zend_Search_Lucene, return results based on specified type_id

What I want to do is be able to filter the returned results to a specific type_id. First I index all the articles I want to be searchable. SELECT article_id, article_name, article_body, type_id FROM articles WHERE …
Jason246
  • 580
  • 5
  • 7
1
vote
1 answer

How to get zend_lucene and zend_paginator to work

I've been using Zend Framework for a few months now. So, my knowledge is pretty good but I'm not quite an expert yet. I am trying to use zend_lucene with zend_paginator and so far not successful. I am able to use zend_lucene and index data…
1
vote
1 answer

Migration from Zend_Lucene to Solr

In our project (based on Zend Framework) we have to find a replacement for default Zend_Lucene. Now I'm trying to implement Solr with PHP Solr Client in it. We have 2 tables, where we take the data: categories and offers. In Zend_Lucene addition…
Vasiliy Toporov
  • 814
  • 12
  • 27
1
vote
0 answers

Zend Lucene indexing/returning cross-reference part results on large data set

We have a “cross-reference” module that I’m attempting to build into a Zend Lucene search index and having major performance issues. Tried this ten different ways and either zero/bad results, or super accurate and extremely slow performance. The…
FurryWombat
  • 816
  • 2
  • 12
  • 28
1
vote
1 answer

Indexing Adds/Changes not working using Lucene in Zend Framework

I am pretty new to programming and definitely to Zend/Lucene indexing. From what I can tell, though, my code is correct. I feel like I may be overlooking a step or something trying to upload changes and adds to the database so that they appear in…
1
vote
1 answer

Zend_Search_Lucene "Exception thrown without a stack frame in Unknown on line 0"

I get this error randomly when using Zend_Search_Lucene. Exception thrown without a stack frame in Unknown on line 0 Has anybody ran into this who can help? Thank you.
Drew LeSueur
  • 19,185
  • 29
  • 89
  • 106
1
vote
1 answer

Regular expression for Text, Numbers and Decimals

I am trying to get a regular expression for text, decimals and decimal numbers. The expression must match all at once. The main problem is that I had to write an Analyzer for Zend_Search_Lucene in order to be able to search for decimal digits. Right…
burntblark
  • 124
  • 1
  • 4
1
vote
1 answer

ZendSearch in Symfony: "Index is under processing now"

Any ideas? Uncaught PHP Exception ZendSearch\Lucene\Exception\RuntimeException: "Index is under processing now" at some/path/vendor/zendsearch/library/ZendSearch/Lucene/Index.php line 154. This is in prod mode of Symfony. This caused 500 error in my…
kenicky
  • 431
  • 4
  • 14
1
vote
0 answers

Get payloads for matching terms in solr using Custom Document Transformer

In Solr I have a custom fieldType called "payloads" which support payloads
1
vote
1 answer

Zend_Search_Lucene, how to share an index storage folder over network

I am running web application on two different servers with load balancing, and using Zend_Search_Lucene for indexing documents. Now I am facing indexing issue which a user comes to the site through server #1 and stores information,…
oroojass
  • 11
  • 1
1
vote
0 answers

how to submit a form data to the controller which is within vendor directory

I'am using yii2basic template where I am using himiklab search component to make a lucene search after doing the the installation through composer himiklab directory is created within vendor then there is a module which contain controller and…
rahul s negi
  • 139
  • 14
1
vote
2 answers

Lucene - how to make multiple words within query AND instead of OR together

I am using Zend Search Lucene and if the user types in Vibrant Bouquet into the search box, results with the word "Vibrant" or the word "bouquet" (or both obviously) are returned. What I want is only to return those results with both…
Gnuffo1
  • 3,478
  • 11
  • 39
  • 53
1
vote
1 answer

Zend lucene : Multiple criteria on search = bad results

I new to lucene, and i noticed something annoying : In my search bar, if I type "USA" : return all the matches -> OK. If I type "Developper" : return all the matches -> OK BUT, -if i type "USA Developper", it'll not return me all the developper…
sf_tristanb
  • 8,725
  • 17
  • 74
  • 118
1
vote
1 answer

Zend_Search_Lucene changing term frequency problem

I am trying to update the searching of terms of documents within my Lucene index. Currently the searches score on the number of times the term appears in the document. What I would like to do is score if the term exists, rather than the number of…
Grant Collins
  • 1,781
  • 5
  • 31
  • 47