[fw-general] two view prefixes?
Hi, Is it possible to set two different view prefixes? Thanks, -- View this message in context: http://www.nabble.com/two-view-prefixes--tf4478451s16154.html#a12769919 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] beginner, quoting where in array
i may be wrong, but i think this is done behind the scenes allready when you use placeholders like ? or :xy. i think this is mentioned in the zend_db manual somewhere on top. so just don't try to quote the $whereArray, that looks not ok. best regards, Steven Truppe debussy007 wrote: > Hello , > > I need to use fetchRow method but I need more than one 'where' condition. > I tried the code below but it is not working : > > $whereArray = array( > 'username = ?' => $uid, > 'code = ?' => $code > ); > > $members = new Members(); > $where = $members->getAdapter()->quote($whereArray); > $row = $members->fetchRow($where); > > I see in the doc the following example: > $where = array( > 'bug_status = ?' => 'NEW', > 'reported_by = ?' => 'dduck' > ); > $rows = $table->fetchAll($where); > > but it's not using any mehods to quote the sql like this example : > $where = $table->getAdapter()->quoteInto('bug_status = ?', 'NEW'); > $rows = $table->fetchAll($where); > > Thank you for any clarification! >
Re: [fw-general] Alternate ACL query
at the moment i found these methods in the api-docs for Zend_Acl has ($resource) hasRole ($role) inherits ($resource, $inherit, $onlyParent) inheritsRole ($role,$inherit, $onlyParents) they might help you best regards, Steven Truppe Jude Aakjaer wrote: > Sorry those search functions would be more like > $perms = $acl->searchResource('user', 'news', 'view'); //return > "news-1", "news-2" > $perms = $acl->searchResource('user', 'news', 'edit'); //return > "news-3", "news-4" > $perms = $acl->searchResource('user', 'news'); //return 'view' => > "news-1", "news-2" ; 'edit' => "news-3", "news-4" > > On Mon, 17 Sep 2007 17:28:06 +0800, Jude Aakjaer <[EMAIL PROTECTED]> > wrote: > >> Hi Guys, >> >> Thanks >> Jude A. >> > > >
Re: [fw-general] Lucene, problem with indexing
Hi Alexander, The ZF version is 0.9.2, I could not yet upgrade to the latest version (but I'm making it a high priority now :) In the mean time, I managed to 'solve' this issue by changing the analyzer to Zend_Search_Lucene_Analysis_Analyzer_Common_Text, instead of the Utf8 one. Still wonder what caused the analyzer to go haywire there, though, but at least it's working now. Best regards, Pieter Alexander Veremyev schreef: Hi Pieter, Please let me know the ZF version you use. I checked current SVN and latest release versions and didn't find any appropriate code at the specified lines. With best regards, Alexander Veremyev. -Original Message- From: Pieter v.d. Brink [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 2:53 PM To: fw-general@lists.zend.com Subject: [fw-general] Lucene, problem with indexing Hello all, I'm trying to index a database with news articles, there are about 7600 articles in it. In addition I've implemented a stemming filter (Porter stemmer) that changes all tokens to their stems. This seems to work fine for my test database, which consists of around 1600 articles. But when I try to index the real database, I'm running into trouble. The indexing takes a long time and eventually returns around 15.000 (!) lines worth of notices, most of which consist of the following: Notice: Undefined offset: 53346 in C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentInfo.p hp on line 893 Notice: Trying to get property of non-object in C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentInfo.p hp on line 893 Notice: Undefined index: in C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentWriter .php on line 440 Notice: Trying to get property of non-object in C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentWriter .php on line 440 There are a few other notices about different undefined offsets. There were no errors of any type, and an index file did get created. However, the index file is not complete, many articles are missing from it and cannot be found when searching. Any idea what is going wrong here? The following code is used to create the index file: $newsItem = new NewsItem(); Zend_Loader::loadClass('PorterStemmerFilter'); $analyzer = new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8(); $stemmer = new PorterStemmerFilter(); $analyzer->addFilter($stemmer); Zend_Search_Lucene_Analysis_Analyzer::setDefault($analyzer); $index = Zend_Search_Lucene::create('application/data/newsItemIndexStemmed'); $newsItemRows = $newsItem->fetchAll(); $newsItemArray = $newsItemRows->toArray(); foreach ($newsItemArray as $newsItem){ $doc = new Zend_Search_Lucene_Document(); $doc->addField(Zend_Search_Lucene_Field::UnIndexed('itemid', $newsItem['itemid'])); $doc->addField(Zend_Search_Lucene_Field::UnStored('title', $newsItem['title'])); $doc->addField(Zend_Search_Lucene_Field::UnStored('link', $newsItem['link'])); $doc->addField(Zend_Search_Lucene_Field::UnStored('description', $newsItem['description'])); $index->addDocument($doc); } Best regards, Pieter No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.22/1013 - Release Date: 17.09.2007 13:29 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.22/1013 - Release Date: 17.09.2007 13:29
Re: [fw-general] Action Helper
Thanks Matthew, Just saw that I forgot the _helper after I posted. Cheers. Matthew Weier O'Phinney-3 wrote: > > -- Waigani <[EMAIL PROTECTED]> wrote > (on Tuesday, 18 September 2007, 01:59 PM -0700): >> Okay I see I have to add >> >> $priv = $this->_helper->getHelper('Priv'); >> >> and then it works. > > No, you do not need to do this. As I mentioned in a previous email, > rename your 'Priv' method to 'direct', and then the following will work: > > $this->_helper->priv('hello'); > >> But why would I not just go >> >> $priv = new Hs_Action_Helper_Priv? > > Action helpers integrate with the action controllers. Many do not need > to do so, but if they need to, their constructor receives the current > action controller, and each time the helper broker is initialized, it is > set in the action controller itself. The ViewRenderer is an example of > a helper that has such tight integration. > >> What I was hoping for is that action helpers would work like view >> helpers: >> register it in the bootstrap and then anywhere in the controller just >> call >> the method - ie take out the above step. > > They do, but you need to call them from the $_helper property (__call() > was already in use when action helpers were added to the framework). > > >> Waigani wrote: >> > >> > Hi, >> > >> > I've written a custom helper: >> > >> > class Hs_Action_Helper_Priv extends >> > Zend_Controller_Action_Helper_Abstract{ >> > >> >function Priv($priv){ >> >$AclCk = new Hs_Acl_Auth(); >> >return $AclCk->Priv($priv); >> >} >> > >> > } >> > >> > >> > Registered it in the bootstrap: >> > >> > Zend_Controller_Action_HelperBroker::addPrefix('Hs_Action_Helper'); >> > >> > >> > and called it in an action: >> > >> > $this->_helper->priv('hello'); >> > >> > >> > >> > I get the error: >> > >> > Cannot redeclare IndexController::indexAction() >> > >> > >> > >> > Any clues? >> > >> > Thanks, >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Action-Helper-tf4477038s16154.html#a12766052 >> Sent from the Zend Framework mailing list archive at Nabble.com. >> > > -- > Matthew Weier O'Phinney > PHP Developer| [EMAIL PROTECTED] > Zend - The PHP Company | http://www.zend.com/ > > -- View this message in context: http://www.nabble.com/Action-Helper-tf4477038s16154.html#a12766820 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Action Helper
Got it. Forgot to put in $this->_helper->Priv(); Thanks for the help :) Waigani wrote: > > Okay I'm missing something. > > Everything is the same as in my first post except the method is now called > 'direct'. I get the same error message: > > Cannot redeclare IndexController::indexAction() > > > Matthew Weier O'Phinney-3 wrote: >> >> -- Waigani <[EMAIL PROTECTED]> wrote >> (on Tuesday, 18 September 2007, 01:42 PM -0700): >>> I've written a custom helper: >>> >>> class Hs_Action_Helper_Priv extends >>> Zend_Controller_Action_Helper_Abstract{ >>> >>> function Priv($priv){ >>> $AclCk = new Hs_Acl_Auth(); >>> return $AclCk->Priv($priv); >>> } >>> >>> } >>> >>> >>> Registered it in the bootstrap: >>> >>> Zend_Controller_Action_HelperBroker::addPrefix('Hs_Action_Helper'); >>> >>> >>> and called it in an action: >>> >>> $this->_helper->priv('hello'); >>> >>> >>> >>> I get the error: >>> >>> Cannot redeclare IndexController::indexAction() >> >> Action Helpers properly follow the Strategy pattern and have a single >> method called when used as a pseudo-method: direct(). (View helpers >> should likely do this, but they've been done using the method name == >> helper name paradigm since pre-0.1.0 and it's too late to change it >> now.) >> >> So, simply rename your 'Priv' method to 'direct', and you'll get the >> functionality you're looking for. >> >> -- >> Matthew Weier O'Phinney >> PHP Developer| [EMAIL PROTECTED] >> Zend - The PHP Company | http://www.zend.com/ >> >> > > -- View this message in context: http://www.nabble.com/Action-Helper-tf4477038s16154.html#a12766800 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Action Helper
Okay I'm missing something. Everything is the same as in my first post except the method is now called 'direct'. I get the same error message: Cannot redeclare IndexController::indexAction() Matthew Weier O'Phinney-3 wrote: > > -- Waigani <[EMAIL PROTECTED]> wrote > (on Tuesday, 18 September 2007, 01:42 PM -0700): >> I've written a custom helper: >> >> class Hs_Action_Helper_Priv extends >> Zend_Controller_Action_Helper_Abstract{ >> >> function Priv($priv){ >> $AclCk = new Hs_Acl_Auth(); >> return $AclCk->Priv($priv); >> } >> >> } >> >> >> Registered it in the bootstrap: >> >> Zend_Controller_Action_HelperBroker::addPrefix('Hs_Action_Helper'); >> >> >> and called it in an action: >> >> $this->_helper->priv('hello'); >> >> >> >> I get the error: >> >> Cannot redeclare IndexController::indexAction() > > Action Helpers properly follow the Strategy pattern and have a single > method called when used as a pseudo-method: direct(). (View helpers > should likely do this, but they've been done using the method name == > helper name paradigm since pre-0.1.0 and it's too late to change it > now.) > > So, simply rename your 'Priv' method to 'direct', and you'll get the > functionality you're looking for. > > -- > Matthew Weier O'Phinney > PHP Developer| [EMAIL PROTECTED] > Zend - The PHP Company | http://www.zend.com/ > > -- View this message in context: http://www.nabble.com/Action-Helper-tf4477038s16154.html#a12766620 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Action Helper
-- Waigani <[EMAIL PROTECTED]> wrote (on Tuesday, 18 September 2007, 01:59 PM -0700): > Okay I see I have to add > > $priv = $this->_helper->getHelper('Priv'); > > and then it works. No, you do not need to do this. As I mentioned in a previous email, rename your 'Priv' method to 'direct', and then the following will work: $this->_helper->priv('hello'); > But why would I not just go > > $priv = new Hs_Action_Helper_Priv? Action helpers integrate with the action controllers. Many do not need to do so, but if they need to, their constructor receives the current action controller, and each time the helper broker is initialized, it is set in the action controller itself. The ViewRenderer is an example of a helper that has such tight integration. > What I was hoping for is that action helpers would work like view helpers: > register it in the bootstrap and then anywhere in the controller just call > the method - ie take out the above step. They do, but you need to call them from the $_helper property (__call() was already in use when action helpers were added to the framework). > Waigani wrote: > > > > Hi, > > > > I've written a custom helper: > > > > class Hs_Action_Helper_Priv extends > > Zend_Controller_Action_Helper_Abstract{ > > > > function Priv($priv){ > > $AclCk = new Hs_Acl_Auth(); > > return $AclCk->Priv($priv); > > } > > > > } > > > > > > Registered it in the bootstrap: > > > > Zend_Controller_Action_HelperBroker::addPrefix('Hs_Action_Helper'); > > > > > > and called it in an action: > > > > $this->_helper->priv('hello'); > > > > > > > > I get the error: > > > > Cannot redeclare IndexController::indexAction() > > > > > > > > Any clues? > > > > Thanks, > > > > -- > View this message in context: > http://www.nabble.com/Action-Helper-tf4477038s16154.html#a12766052 > Sent from the Zend Framework mailing list archive at Nabble.com. > -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
Re: [fw-general] Action Helper
Okay I see I have to add $priv = $this->_helper->getHelper('Priv'); and then it works. But why would I not just go $priv = new Hs_Action_Helper_Priv? What I was hoping for is that action helpers would work like view helpers: register it in the bootstrap and then anywhere in the controller just call the method - ie take out the above step. Waigani wrote: > > Hi, > > I've written a custom helper: > > class Hs_Action_Helper_Priv extends > Zend_Controller_Action_Helper_Abstract{ > > function Priv($priv){ > $AclCk = new Hs_Acl_Auth(); > return $AclCk->Priv($priv); > } > > } > > > Registered it in the bootstrap: > > Zend_Controller_Action_HelperBroker::addPrefix('Hs_Action_Helper'); > > > and called it in an action: > > $this->_helper->priv('hello'); > > > > I get the error: > > Cannot redeclare IndexController::indexAction() > > > > Any clues? > > Thanks, > -- View this message in context: http://www.nabble.com/Action-Helper-tf4477038s16154.html#a12766052 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Action Helper
-- Waigani <[EMAIL PROTECTED]> wrote (on Tuesday, 18 September 2007, 01:42 PM -0700): > I've written a custom helper: > > class Hs_Action_Helper_Priv extends Zend_Controller_Action_Helper_Abstract{ > > function Priv($priv){ > $AclCk = new Hs_Acl_Auth(); > return $AclCk->Priv($priv); > } > > } > > > Registered it in the bootstrap: > > Zend_Controller_Action_HelperBroker::addPrefix('Hs_Action_Helper'); > > > and called it in an action: > > $this->_helper->priv('hello'); > > > > I get the error: > > Cannot redeclare IndexController::indexAction() Action Helpers properly follow the Strategy pattern and have a single method called when used as a pseudo-method: direct(). (View helpers should likely do this, but they've been done using the method name == helper name paradigm since pre-0.1.0 and it's too late to change it now.) So, simply rename your 'Priv' method to 'direct', and you'll get the functionality you're looking for. -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
[fw-general] Action Helper
Hi, I've written a custom helper: class Hs_Action_Helper_Priv extends Zend_Controller_Action_Helper_Abstract{ function Priv($priv){ $AclCk = new Hs_Acl_Auth(); return $AclCk->Priv($priv); } } Registered it in the bootstrap: Zend_Controller_Action_HelperBroker::addPrefix('Hs_Action_Helper'); and called it in an action: $this->_helper->priv('hello'); I get the error: Cannot redeclare IndexController::indexAction() Any clues? Thanks, -- View this message in context: http://www.nabble.com/Action-Helper-tf4477038s16154.html#a12765742 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Jira is down...
Thomas Weidner wrote: Yeah, right. Judging from emotions you feel guilty already ;) No comments on such posts... I dont feel happy about such messages even if a smilie is attached. Sorry if it offended you. It wasn't my intention. Thomas -- Michał Minicki aka Martel Valgoerad | [EMAIL PROTECTED] | http://aie.pl/martel.asc =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "Idleness is not doing nothing. Idleness is being free to do anything." -- Floyd Dell
Re: [fw-general] Jira is down...
Yeah, right. Judging from emotions you feel guilty already ;) No comments on such posts... I dont feel happy about such messages even if a smilie is attached. Thomas - Original Message - From: "Michał Minicki" <[EMAIL PROTECTED]> To: "Zend Framework General" Sent: Tuesday, September 18, 2007 7:06 PM Subject: Re: [fw-general] Jira is down... Thomas Weidner wrote: Definitly not... I AM NOT THE FAULT !! Yeah, right. Judging from emotions you feel guilty already ;) -- Michał Minicki aka Martel Valgoerad | [EMAIL PROTECTED] | http://aie.pl/martel.asc =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "Idleness is not doing nothing. Idleness is being free to do anything." -- Floyd Dell
Re: [fw-general] Jira is down...
I still believe it's the apprentice who commonly stumbles at the power plug ;-) Greetings Thomas I18N Team Leader - Original Message - From: "Pádraic Brady" <[EMAIL PROTECTED]> To: "Ryan Boyd" <[EMAIL PROTECTED]> Cc: "Zend Framework General" Sent: Tuesday, September 18, 2007 6:21 PM Subject: Re: [fw-general] Jira is down... Will Master Weidner please cease and desist? ;) Just kidding. I blame it on Gremlins you see. I watched this movie the other night and it did a good job explaining how cute cuddly creature + water + feeding after midnight may be responsible for JIRA/Wiki downtime. Hypothetically, some Zend engineer could be keeping a few furry pets in the basement below Zend's server farm. Come midnight US Pacific time (after a feeding session on any leftovers remaining in Zend's canteen), they enter a cocoon stage before emerging as green scaled creatures who commence running riot and taking out the JIRA server each night. It's remotely possible they are aware of how irritating this is (the Gremlin with the glasses seemed of above average intelligence in the movie so it seems a fair assumption) but I can't yet identify a motive. Perhaps Gremlins need no motive? May I propose Bill, Darby and Matthew put together a crack team of Gremlin exterminators? The movie suggested Gremlin + Microwave is a highly explosive method of extermination. Gremlins also appear to aggregate around flammable alcohol. A few bottles of Paddy Power in the right place... Hypothetically, you understand...;) Pádraic Brady http://blog.astrumfutura.com http://www.patternsforphp.com - Original Message From: Ryan Boyd <[EMAIL PROTECTED]> To: till <[EMAIL PROTECTED]> Cc: Thomas Weidner <[EMAIL PROTECTED]>; Michał Minicki <[EMAIL PROTECTED]>; fw-general@lists.zend.com Sent: Tuesday, September 18, 2007 4:51:13 PM Subject: Re: [fw-general] Jira is down... Jira issues again :( --- Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /issues/secure/BrowseProject.jspa. Reason: Error reading from remote server On 9/17/07, till <[EMAIL PROTECTED]> wrote: On 9/17/07, Thomas Weidner <[EMAIL PROTECTED]> wrote: > Definitly not... > > I AM NOT THE FAULT !! You just work too much on it. :P C'mon, just admit it!!! Till Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
Re: [fw-general] Jira is down...
Thomas Weidner wrote: Definitly not... I AM NOT THE FAULT !! Yeah, right. Judging from emotions you feel guilty already ;) -- Michał Minicki aka Martel Valgoerad | [EMAIL PROTECTED] | http://aie.pl/martel.asc =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "Idleness is not doing nothing. Idleness is being free to do anything." -- Floyd Dell
RE: [fw-general] Lucene, problem with indexing
Hi Pieter, Please let me know the ZF version you use. I checked current SVN and latest release versions and didn't find any appropriate code at the specified lines. With best regards, Alexander Veremyev. > -Original Message- > From: Pieter v.d. Brink [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 18, 2007 2:53 PM > To: fw-general@lists.zend.com > Subject: [fw-general] Lucene, problem with indexing > > Hello all, > > I'm trying to index a database with news articles, there are > about 7600 articles in it. In addition I've implemented a > stemming filter (Porter > stemmer) that changes all tokens to their stems. This seems > to work fine for my test database, which consists of around > 1600 articles. But when I try to index the real database, I'm > running into trouble. The indexing takes a long time and > eventually returns around 15.000 (!) lines worth of notices, > most of which consist of the following: > > Notice: Undefined offset: 53346 in > C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentInfo.p > hp on line 893 > > Notice: Trying to get property of non-object in > C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentInfo.p > hp on line 893 > > Notice: Undefined index: in > C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentWriter > .php on line 440 > > Notice: Trying to get property of non-object in > C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentWriter > .php on line 440 > > There are a few other notices about different undefined > offsets. There were no errors of any type, and an index file > did get created. However, the index file is not complete, > many articles are missing from it and cannot be found when > searching. Any idea what is going wrong here? The following > code is used to create the index file: > > $newsItem = new NewsItem(); > Zend_Loader::loadClass('PorterStemmerFilter'); > $analyzer = new > Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8(); > $stemmer = new PorterStemmerFilter(); > $analyzer->addFilter($stemmer); > Zend_Search_Lucene_Analysis_Analyzer::setDefault($analyzer); > $index = > Zend_Search_Lucene::create('application/data/newsItemIndexStemmed'); > $newsItemRows = $newsItem->fetchAll(); > $newsItemArray = $newsItemRows->toArray(); > foreach ($newsItemArray as $newsItem){ > $doc = new Zend_Search_Lucene_Document(); > > $doc->addField(Zend_Search_Lucene_Field::UnIndexed('itemid', > $newsItem['itemid'])); > > $doc->addField(Zend_Search_Lucene_Field::UnStored('title', > $newsItem['title'])); > > $doc->addField(Zend_Search_Lucene_Field::UnStored('link', > $newsItem['link'])); > > $doc->addField(Zend_Search_Lucene_Field::UnStored('description', > $newsItem['description'])); > $index->addDocument($doc); > > } > > Best regards, > Pieter > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.487 / Virus Database: 269.13.22/1013 - Release > Date: 17.09.2007 13:29 > > No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.22/1013 - Release Date: 17.09.2007 13:29
RE: [fw-general] Lucene and n:m
That's right way to manage tags. One correction. Keyword fields are not tokenized. Use Text or UnStored field types. Otherwise only documents with exactly one tag will be matched. With best regards, Alexander Veremyev. > -Original Message- > From: Christophe OLLIER [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 18, 2007 1:37 PM > To: Carl.Vondrick > Cc: fw-general@lists.zend.com > Subject: Re: [fw-general] Lucene and n:m > > Carl.Vondrick a écrit : > > What is the best way to do a many-to-many relationship in > Zend_Search_Lucene? > > For instance, suppose I have index of a blog and I wish for > users to > > be able to search by a tag. A post can have many tags and > a tag can > > have many posts. > > > > The approach I would like to take to index is: > > > > > foreach ($tags as $tag) > > { > > > $document->addField(Zend_Search_Lucene_Field::Keyword($tag, 'tag')); > > } ?> > > > We have a similar setup, we just concatenate the tags : > > $document->addField(Zend_Search_Lucene_Field::Keyword(implode( > ', ', $tags), 'tag')); > > > -- > Christophe > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.487 / Virus Database: 269.13.22/1013 - Release > Date: 17.09.2007 13:29 > > No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.22/1013 - Release Date: 17.09.2007 13:29
Re: [fw-general] Jira is down...
Will Master Weidner please cease and desist? ;) Just kidding. I blame it on Gremlins you see. I watched this movie the other night and it did a good job explaining how cute cuddly creature + water + feeding after midnight may be responsible for JIRA/Wiki downtime. Hypothetically, some Zend engineer could be keeping a few furry pets in the basement below Zend's server farm. Come midnight US Pacific time (after a feeding session on any leftovers remaining in Zend's canteen), they enter a cocoon stage before emerging as green scaled creatures who commence running riot and taking out the JIRA server each night. It's remotely possible they are aware of how irritating this is (the Gremlin with the glasses seemed of above average intelligence in the movie so it seems a fair assumption) but I can't yet identify a motive. Perhaps Gremlins need no motive? May I propose Bill, Darby and Matthew put together a crack team of Gremlin exterminators? The movie suggested Gremlin + Microwave is a highly explosive method of extermination. Gremlins also appear to aggregate around flammable alcohol. A few bottles of Paddy Power in the right place... Hypothetically, you understand...;) Pádraic Brady http://blog.astrumfutura.com http://www.patternsforphp.com - Original Message From: Ryan Boyd <[EMAIL PROTECTED]> To: till <[EMAIL PROTECTED]> Cc: Thomas Weidner <[EMAIL PROTECTED]>; Michał Minicki <[EMAIL PROTECTED]>; fw-general@lists.zend.com Sent: Tuesday, September 18, 2007 4:51:13 PM Subject: Re: [fw-general] Jira is down... Jira issues again :( --- Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /issues/secure/BrowseProject.jspa. Reason: Error reading from remote server On 9/17/07, till <[EMAIL PROTECTED]> wrote: > On 9/17/07, Thomas Weidner <[EMAIL PROTECTED]> wrote: > > Definitly not... > > > > I AM NOT THE FAULT !! > > You just work too much on it. :P C'mon, just admit it!!! > > Till > Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
Re: [fw-general] Jira is down...
On 9/15/07, Rob Allen <[EMAIL PROTECTED]> wrote: > > Issue Tracker is down. > I experienced similar problems with Tomcat 5 and Tomcat 5.5 but managed to solve it. Who is in charge of it? I can send you my workarounds. cheers, Johannes
Re: [fw-general] Jira is down...
Jira issues again :( --- Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /issues/secure/BrowseProject.jspa. Reason: Error reading from remote server On 9/17/07, till <[EMAIL PROTECTED]> wrote: > On 9/17/07, Thomas Weidner <[EMAIL PROTECTED]> wrote: > > Definitly not... > > > > I AM NOT THE FAULT !! > > You just work too much on it. :P C'mon, just admit it!!! > > Till >
[fw-general] Lucene, problem with indexing
Hello all, I'm trying to index a database with news articles, there are about 7600 articles in it. In addition I've implemented a stemming filter (Porter stemmer) that changes all tokens to their stems. This seems to work fine for my test database, which consists of around 1600 articles. But when I try to index the real database, I'm running into trouble. The indexing takes a long time and eventually returns around 15.000 (!) lines worth of notices, most of which consist of the following: Notice: Undefined offset: 53346 in C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentInfo.php on line 893 Notice: Trying to get property of non-object in C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentInfo.php on line 893 Notice: Undefined index: in C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentWriter.php on line 440 Notice: Trying to get property of non-object in C:\htdocs\forca\library\Zend\Search\Lucene\Index\SegmentWriter.php on line 440 There are a few other notices about different undefined offsets. There were no errors of any type, and an index file did get created. However, the index file is not complete, many articles are missing from it and cannot be found when searching. Any idea what is going wrong here? The following code is used to create the index file: $newsItem = new NewsItem(); Zend_Loader::loadClass('PorterStemmerFilter'); $analyzer = new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8(); $stemmer = new PorterStemmerFilter(); $analyzer->addFilter($stemmer); Zend_Search_Lucene_Analysis_Analyzer::setDefault($analyzer); $index = Zend_Search_Lucene::create('application/data/newsItemIndexStemmed'); $newsItemRows = $newsItem->fetchAll(); $newsItemArray = $newsItemRows->toArray(); foreach ($newsItemArray as $newsItem){ $doc = new Zend_Search_Lucene_Document(); $doc->addField(Zend_Search_Lucene_Field::UnIndexed('itemid', $newsItem['itemid'])); $doc->addField(Zend_Search_Lucene_Field::UnStored('title', $newsItem['title'])); $doc->addField(Zend_Search_Lucene_Field::UnStored('link', $newsItem['link'])); $doc->addField(Zend_Search_Lucene_Field::UnStored('description', $newsItem['description'])); $index->addDocument($doc); } Best regards, Pieter
Re: [fw-general] Lucene and n:m
Carl.Vondrick a écrit : What is the best way to do a many-to-many relationship in Zend_Search_Lucene? For instance, suppose I have index of a blog and I wish for users to be able to search by a tag. A post can have many tags and a tag can have many posts. The approach I would like to take to index is: addField(Zend_Search_Lucene_Field::Keyword($tag, 'tag')); } ?> We have a similar setup, we just concatenate the tags : $document->addField(Zend_Search_Lucene_Field::Keyword(implode(', ', $tags), 'tag')); -- Christophe
[fw-general] beginner, quoting where in array
Hello , I need to use fetchRow method but I need more than one 'where' condition. I tried the code below but it is not working : $whereArray = array( 'username = ?' => $uid, 'code = ?' => $code ); $members = new Members(); $where = $members->getAdapter()->quote($whereArray); $row = $members->fetchRow($where); I see in the doc the following example: $where = array( 'bug_status = ?' => 'NEW', 'reported_by = ?' => 'dduck' ); $rows = $table->fetchAll($where); but it's not using any mehods to quote the sql like this example : $where = $table->getAdapter()->quoteInto('bug_status = ?', 'NEW'); $rows = $table->fetchAll($where); Thank you for any clarification! -- View this message in context: http://www.nabble.com/beginner%2C-quoting-where-in-array-tf4473006s16154.html#a12753364 Sent from the Zend Framework mailing list archive at Nabble.com.