By default Lucene search does not look for substrings, I think there are several reasons why they are doing this mostly related to performance. There are some tokenizer engines which put in the index the combination of all substrings and they solve this way the problem of substring search, example: "White fox" is sent to indexing (with 3 character as minim length) as: 'Whi hit ite fox' For the Zend PHP version you will have to build this yourself I think, there is one in Solr: http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.EdgeNGramFilterFactory This can turn into a performance nightmare quickly and I'm not sure that it will improve your search experience, Google search does not look for substrings. I would rather focus on increasing relevancy (synonims, stemming, stopwords, ...) than solving the problem of substring search.
Regarding the performance I do not recommend the Zend implementation, only for the really small projects. For larger projects my suggestion for you is to go with Solr: http://lucene.apache.org/solr/ gabriel On Oct 19, 12:59 pm, Adam <drsp...@gmail.com> wrote: > Hi > > I integrated Zend Lucene Search to my project ( following the Jobeet > tutorial ), index: one field (manufacturer name). > The problem is that it only finds exact words, in the jobeet demo it > finds it even if the input is a part of a word or just a letter. > It look like the input isnt formatted but it's not formatted in the > jobeet demo either( i downloaded the source ) - if i write stan* it > finds stanley, but for stan nothing. > I dont know what could be the problem, i did the same as they did in > the tutorial, do i have to configure the search engine which is > missing from the tutorial? > > Btw it is a webshop and there will be 60 000 products (5-10 index > fileds), is this engine fast enough for me? > > (Sorry for my english) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en