This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » Search plugins » sflucene stop words ( array_flip(): Can only flip STRING and INTEGER values!)
sflucene stop words ( array_flip(): Can only flip STRING and INTEGER values!) [message #81896] Wed, 15 July 2009 12:56
iamdecal  is currently offline iamdecal
Messages: 23
Registered: January 2008
Junior Member
Just as a pointer if you get this error.


PHP Warning: array_flip(): Can only flip STRING and INTEGER values! in <YOURHOST> /plugins/sfLucenePlugin/lib/vendor/Zend/Search/Lucene/Analys is/TokenFilter/StopWords.php on line 55

the following stop words cause this.


off (Is replaced as blank)
on (Is replaced as 1)
no (Is replaced as blank)


i dont have yes as a stop word, but am pretty sure that it will be replaced as 1 inline with the changes abouve.

strickly speaking on and yes wont break the code - 1 is a valid integer after all, but no and off do.

please add anymore you come across below. hope this helps someone - took me a while to work out what was going on

FWIW my current list of english stopwords is.

stop_words:[a, about, above, across, after, afterwards, again, against, all, almost, alone, along, already, also, although, always, am, among, amongst, amoungst, amount, an, and, another, any, anyhow, anyone, anything, anyway, anywhere, are, around, as, at, back, be, became, because, become, becomes, becoming, been, before, beforehand, behind, being, below, beside, besides, between, beyond, bill, both, bottom, but, by, call, can, cannot, cant, co, computer, con, could, couldnt, cry, de, describe, detail, do, done, down, due, during, each, eg, eight, either, eleven, else, elsewhere, empty, enough, etc, even, ever, every, everyone, everything, everywhere, except, few, fifteen, fify, fill, find, fire, first, five, for, former, formerly, forty, found, four, from, front, full, further, get, give, go, had, has, hasnt, have, he, hence, her, here, hereafter, hereby, herein, hereupon, hers, herself, him, himself, his, how, however, hundred, i, ie, if, in, inc, indeed, interest, into, is, its, itself, keep, last, latter, latterly, least, less, ltd, made, many, may, me, meanwhile, might, mill, mine, more, moreover, most, mostly, move, much, must, my, myself, name, namely, neither, never, nevertheless, next, nine, nobody, none, noone, nor, not, nothing, now, nowhere, of, often, once, one, only, onto, or, other, others, otherwise, our, ours, ourselves, out, over, own, part, per, perhaps, please, put, rather, re, same, see, seem, seemed, seeming, seems, serious, several, she, should, show, side, since, sincere, six, sixty, so, some, somehow, someone, something, sometime, sometimes, somewhere, still, such, system, take, ten, than, that, the, their, them, themselves, then, thence, there, thereafter, thereby, therefore, therein, thereupon, these, they, thick, thin, third, this, those, though, three, through, throughout, thru, thus, to, together, too, top, toward, towards, twelve, twenty, two, un, under, until, up, upon, us, very, via, was, we, well, were, what, whatever, when, whence, whenever, where, whereafter, whereas, whereby, wherein, whereupon, wherever, whether, which, while, whither, who, whoever, whole, whom, whose, why, will, with, within, without, would, yet, you, your, yours, yourself, yourselves]

[Updated on: Wed, 15 July 2009 12:58]

Previous Topic:TinyMCE plugin not getting installed
Next Topic:dont install sfShoppingCart in sf 1.2.8
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software