lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Schnober <schno...@ids-mannheim.de>
Subject Re: SpanQuery, Filter, BooleanQuery
Date Tue, 30 Oct 2012 10:17:13 GMT
Am 29.10.2012 13:40, schrieb Carsten Schnober:

> Now, I'd like to add the option to filter the resulting Spans object by
> another WildcardQuery on a different field that contains document
> titles. My intuitive approach would have been to use a filter like this:

I'd like to conclude my previous post in a less elaborate way: I need to

a) combine two WildcardQueries so that I can still use
SpanMultiTermQueryWrapper to generate a SpanQuery.

b) apply a filter to a WildcardQuery so that the WildcardQuery's results
are reduced before converting it to a SpanQuery using
SpanMultiTermQueryWrapper.

Answer b) seems intuitively the way to go there, but I don't quite find
the correct path there because the filter does not work as intended (see
my previous post).
Answer a) does not seem feasible here either because
SpanMultiTermQueryWrapper requires a MultiTermQuery, but not a BooleanQuery.

Any hints on that?
Best,
Carsten


-- 
Institut für Deutsche Sprache | http://www.ids-mannheim.de
Projekt KorAP                 | http://korap.ids-mannheim.de
Tel. +49-(0)621-43740789      | schnober@ids-mannheim.de
Korpusanalyseplattform der nächsten Generation
Next Generation Corpus Analysis Platform

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


Mime
View raw message