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 indices are structured, how searching is implemented... Would it be possible? *Michal * 2013/6/20 Brendan Grainger <brendan.grain...@gmail.com> > 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 <samek.mic...@gmail.com > >wrote: > > > 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 the *payload*s [artist] [city]. > > > > Thanks > > > > *Michal > > * > > > > > > 2013/6/20 Adrien Grand <jpou...@gmail.com> > > > > > 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 > > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > > > > > > > > > -- > Brendan Grainger > www.kuripai.com >