I have resolve my problem !

But i need to change a class :

class Zend_Search_Lucene_Analysis_Analyzer_Common_Text

line 75, public function nextToken()

i have change :
if (! preg_match('/[a-zA-Z]+/', $this->_input, $match,
PREG_OFFSET_CAPTURE, $this->_position)) {
by :
if (! preg_match('/[a-zA-Z1-9]+/', $this->_input, $match,
PREG_OFFSET_CAPTURE, $this->_position)) {

It is normal to change the lib of the plugin or not?


On 16 jan, 11:57, Nicolas <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I try tro use sfLucenePlugin.
>
> In my database, i have some row like "product1, product2, product3..."
>
> The plugin works, but i have some problem with my search...
> When i do a search "product", he found nothing.
> When i do a search "product*", he found all the products
> And when i do a search "product1", he did'nt find the product1 ?
>
> Do you have an idea to resolve my problem?
>
> my search.yml :
>
> # Define all the models in your project that you want indexed.
> MyIndex:
>   models:
>     Product:
>       fields:
>         id:                 unindexed
>         name:               { boost: 2, type: text }
>         descriptionLight:   { boost: 1.5, type: text }
>         price:              unindexed
>         type:               unindexed
>         strippedName:       text
>         thumbnail:          unindexed
>         salePrice:          unindexed
>         remissedPrice:      unindexed
>       description:          descriptionLight
>       title:                name
>
>   index:
>     name:                   MyIndex
>     encoding:               UTF-8
>     cultures:               [fr]
>     analyzer:               utf8num
>     case_sensitive:         on
>     mb_string:              on
>
> thanks for your helps!
>
> Nicolas
>
> Ps : Sorry for my bad english, i'm a french guy !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to