Re: Suggest search terms

2011-02-22 Thread Fernando Wasylyszyn
ions. > Is it possible to get the number of "hits" per term? > ferrari (125) > lamborghini (34) > ... I think you can just call TermEnum#docFreq(), no? simon > >> -Ursprüngliche Nachricht- >> Von: Fernando Wasylyszyn [mailto:ferw...@yahoo.com.ar

Re: Suggest search terms

2011-02-21 Thread Fernando Wasylyszyn
I think that the idea that Uwe mentions is completely valid. Although it has a few disadvantages: For example, what if you want to suggest "multiword suggestions" and in your index you have only "single word" tokens. Query: Ferrari Ideal suggestions: Ferrari 354 BT, Ferrari 355 C, Ferrari 356 I

Re: Suggest search terms

2011-02-21 Thread Fernando Wasylyszyn
Hello Clemens: a short time ago, I 've faced the same exact problem. Using Apache Solr I built a "suggest" index as a complete separated index, which indexes all the possible terms for suggest (terms that come from the documents to be indexed, using n-grams from a minimum to a maximum number of

Modify how a field value is stored in Lucene

2010-08-02 Thread Fernando Wasylyszyn
Hi all. This is my question. Currently, I'm working in a project where I have Lucene documents with one field that use payloads. For this field, I use org.apache.lucene.analysis.payloads.DelimitedPayloadTokenFilter, so the value for that field is something like: "fieldValue\1.0" where '\' is the