Hi Otis and everbody,

I am not sure if Solr works this way, actually I doubt it...

Let's say I look for "ABC", and I setup my EdgeNGram to create everything up to 
one character: "ABC", "AB", "A"
And maybe I have only two docs in the index with "ABCD" and "AB", and they are 
also setup with that EdgeNGram definition.

So in this case, I think what I would want is only the first document ("ABCD"), 
since the match in the other doc matches less characters. So I would want it 
not be part of the results at all (not just having a lower score).

Although I am curious about your answers, we probably do not need it anymore. 
So if there is no (easy) way to do this, it is not a problem for us.

Thanks,
Alexander


-----Ursprüngliche Nachricht-----
Von: Otis Gospodnetic [mailto:otis.gospodne...@gmail.com] 
Gesendet: Dienstag, 4. Februar 2014 03:32
An: solr-user@lucene.apache.org
Betreff: Re: Special NGRAMish requirement

Hi,

Can you provide an example, Alexander?

Otis
Solr & ElasticSearch Support
http://sematext.com/
On Feb 3, 2014 5:28 AM, "Lochschmied, Alexander" < 
alexander.lochschm...@vishay.com> wrote:

> Hi,
>
> we need to use something very similar to EdgeNGram (minGramSize="1"
> maxGramSize="50" side="front").
> The only thing missing is that we would like to reduce the number of 
> matches. The request we need to implement is returning only those 
> matches with the longest tokens (or terms if that is the right word).
>
> Is there a way to do this in Solr (not necessarily with EdgeNGram)?
>
> Thanks,
> Alexander
>

Reply via email to