Re: Payload Matching Query

2013-06-23 Thread Michael Sokolov
On 6/21/13 11:18 AM, Uwe Schindler wrote: You may also be interested in this talk @ BerlinBuzzwords2013: http://intrafind.de/tl_files/documents/INTRAFIND_BerlinBuzzwords2013_The-Typed-Index.pdf Unfortunately the slides are not available. Uwe I've been wondering why we seem to handle case- and

Re: Payload Matching Query

2013-06-22 Thread michal samek
; > > > -Original Message- > > From: Sujit Pal [mailto:sujitatgt...@gmail.com] On Behalf Of SUJIT PAL > > Sent: Friday, June 21, 2013 5:14 PM > > To: java-user@lucene.apache.org > > Subject: Re: Payload Matching Query > > > > Hi Michael, > > > > I

RE: Payload Matching Query

2013-06-21 Thread Uwe Schindler
...@thetaphi.de > -Original Message- > From: Sujit Pal [mailto:sujitatgt...@gmail.com] On Behalf Of SUJIT PAL > Sent: Friday, June 21, 2013 5:14 PM > To: java-user@lucene.apache.org > Subject: Re: Payload Matching Query > > Hi Michael, > > Instead of putting the anno

Re: Payload Matching Query

2013-06-21 Thread SUJIT PAL
Hi Michael, Instead of putting the annotation in Payloads, why not put them in as "synonyms", ie at the same spot as the original string (see SynonymFilter in the LIA book). So your string would look like (to the index): W. A. Mozart was born in Salzburg artist city so you ca

Re: Payload Matching Query

2013-06-21 Thread michal samek
Eventualy, I have choosen yet another solution. I work with those "payloads" as with synonyms. In my TokenFilter with every occurence of token with "payload", I inject new term - containing this "payload" with zeroed PossitionIncrementAttribute. It solves nearly all my issues =) Thanks everyone fo

Re: Payload Matching Query

2013-06-20 Thread Shai Erera
There are several ways to implement it : Query as you mentioned. You'd need to implement a Scorer which traverses the posting list where the payload exists. The methods you should implement are nextDoc() and advance(). You'll also need to traverse DocsAndPositionsEnum. A Filter. That's somewhat e

Re: Payload Matching Query

2013-06-20 Thread michal samek
Well, with this solution you won't be able to search for near occurences of payloads - as with NearSpanQueries :-/ I just need to store some searchable data with terms, not with documents. But why not implement totally new Query? I'm very new to Lucene, so I've got no idea what it involves, how in

Re: Payload Matching Query

2013-06-20 Thread Brendan Grainger
Any reason not to have separate artist and city fields? So you would search for: artist:(W. A. Mozart) city:Salzburg HTH Brendan On Thu, Jun 20, 2013 at 12:27 PM, michal samek wrote: > Hi Adrien, > > thanks for your reply. If payloads cannot be used for searching, is there > any workaround how

Re: Payload Matching Query

2013-06-20 Thread michal samek
Hi Adrien, thanks for your reply. If payloads cannot be used for searching, is there any workaround how to achieve similar functionality? What I'd like to accomplish is to be able to search documents with contents for example "W. A. Mozart[artist] was born in Salzburg[city]" just by specifying th

Re: Payload Matching Query

2013-06-20 Thread Adrien Grand
Hi Michal, Although payloads can be used at query time to customize scoring, they can't be used for searching. Lucene only allows to search on terms. -- Adrien - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org Fo

Payload Matching Query

2013-06-20 Thread michal samek
Hi guys, I am trying to figure out whether there is a query that would do matching based od token payloads. JUST on token payloads. I think, there is not such query. Thus, I thought about implementing one, but somehow I dont know where to start. I've been trying to achieve this by extending Cust

Re: Question on payload matching query

2013-06-05 Thread Igor Shalyminov
Hi all! Just before diving in the core Lucene code, I would like to ask once again if there are detailed tutorials on SpanQuery execution algorithm, with postings retrieval and positional data matching. Best Regards, Igor 03.06.13, 21:15, "Igor Shalyminov" ": > > Hello! > > I've implemented

Question on payload matching query

2013-06-03 Thread Igor Shalyminov
Hello! I've implemented a SpanQuery class that acts like SpanPositionCheckQuery but also matches payloads. For example, here is the "gram" field in a single indexed document: "gram": N|1|1sg|1|0A|2|0pl|2|0A|3|0sg|3|0 Every token's meaning is as follows: N - grammatical annot