Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

retrieve term positions in query

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


pileggi at pitagora

Mar 1, 2007, 6:15 AM

Post #1 of 2 (992 views)
Permalink
retrieve term positions in query

Hi!
My problem is to retrieve the term positions in a "general" query with more
than one terms.
It seems that with the phrase query it's possible (with SpanQuery) but with
"AND" and "OR" query I can't get the position for each document I search.
I'm looking for a high level implementation because I don't want to use low
level lucene API (I'm a lucene newbie...)

Thanx in advance,
Mat
--
View this message in context: http://www.nabble.com/retrieve-term-positions-in-query-tf3327146.html#a9250330
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
For additional commands, e-mail: java-user-help[at]lucene.apache.org


erickerickson at gmail

Mar 3, 2007, 6:26 AM

Post #2 of 2 (924 views)
Permalink
Re: retrieve term positions in query [In reply to]

There is a long thread in the archive where Mark and I talked about a
SpansExtractor class that might do what you want. See the thread
titled "*Multiword
Highlighting"*

Erick



On 3/1/07, matpil <pileggi[at]pitagora.it> wrote:
>
>
> Hi!
> My problem is to retrieve the term positions in a "general" query with
> more
> than one terms.
> It seems that with the phrase query it's possible (with SpanQuery) but
> with
> "AND" and "OR" query I can't get the position for each document I search.
> I'm looking for a high level implementation because I don't want to use
> low
> level lucene API (I'm a lucene newbie...)
>
> Thanx in advance,
> Mat
> --
> View this message in context:
> http://www.nabble.com/retrieve-term-positions-in-query-tf3327146.html#a9250330
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
> For additional commands, e-mail: java-user-help[at]lucene.apache.org
>
>

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.