Not directly, I don't think. Mark Miller contributed some highlighting code that converts phrase queries to SpanNearQueries, I believe, but this isn't general purpose. We probably need a QueryParser that produces SpanQueries instead of regular Queries, I suppose, but they aren't always 1-1. Ideally, there would be no perf. penalty for SpanQueries and everything would be a span query, but until someone figures out that magic, I don't know.

What is it that you are trying to do?

-Grant

On Oct 30, 2008, at 12:42 PM, Anshul jain wrote:

Thanks Grant the presentation, it was very useful.

Can payload work for queries other than Term queries and Span queries? Or is
there any function to convert Query into span query?

Thanks




On Thu, Oct 23, 2008 at 4:08 PM, Grant Ingersoll <[EMAIL PROTECTED]>wrote:

You can search the archives for some background info. Also, Michael Busch
has a nice presentation from ApacheCon at
http://people.apache.org/~buschmi/apachecon/AdvancedIndexingLuceneAtlanta07.ppt <http://people.apache.org/%7Ebuschmi/apachecon/AdvancedIndexingLuceneAtlanta07.ppt >

Basically, the payload allows you to associate an arbitrary byte array with
1 or more terms.


On Oct 23, 2008, at 9:07 AM, Anshul jain wrote:

Hi all,

Has anyone used the payload functionality in Lucene? I would really
appreciate if someone can provide an explain using a code or something.

Thanks,
Anshul


--------------------------
Grant Ingersoll
Lucene Boot Camp Training Nov. 3-4, 2008, ApacheCon US New Orleans.
http://www.lucenebootcamp.com


Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ










---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Anshul Jain

--------------------------
Grant Ingersoll
Lucene Boot Camp Training Nov. 3-4, 2008, ApacheCon US New Orleans.
http://www.lucenebootcamp.com


Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ










---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to