lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Livia Hauser" <>
Subject RE: How to implement a proximity search using LINES as slop
Date Tue, 08 Feb 2011 21:51:21 GMT
Hi Pierre,

many thanks for your idear.
I had a look to Payloads ... should it possible to store the line number as payload?

Best Regards,

-----Ursprüngliche Nachricht-----
Von: "Pierre GOSSE" <>
Gesendet: 08.02.2011 09:37:53
An: "" <>
Betreff: RE: How to implement a proximity search using LINES as slop

>Hi Livia,
>One way of doing this line slope would be to implement a custom tokenizer that could tokenize
on new line, and split each token into the words it contains. I.e. Each word of a line would
be seen as being at the same position (and having same offset and length as the complete line).

>I don't think usual queries would respond well with that field, so maybe you will have
to have two fields, one standard for searching and scoring and one custom for filtering your
>But maybe that's overkill, and there's a simpler manner to achieve this line slope, I'm
quite new to solr. :)
>-----Message d'origine-----
>De : Livia Hauser [] 
>Envoyé : lundi 7 février 2011 20:59
>À :
>Objet : How to implement a proximity search using LINES as slop
>Hi All,
>I use solr 3.x and put excel documents into an index.
>I have my own query parser and use SpanQueries to provide a proximity search feature.
It works really good.
>Most often than not its better to limit the proxmity to one or two line's, not to X words.
>I try to find a NewLine indicator... unsuccessfully.
>How can use the number of lines as proximity?
>WEB.DE DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt mit 
>gratis Handy-Flat!
>To unsubscribe, e-mail:
>For additional commands, e-mail:
Neu: WEB.DE De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message