lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: createWeight protected
Date Mon, 15 Jun 2009 22:35:30 GMT
+1

Mike

On Mon, Jun 15, 2009 at 5:47 PM, Yonik Seeley<yonik@lucidimagination.com> wrote:
> I'm simply trying to create a query wrapper class to hold some
> additional metadata, and delegate all operations to the wrapped query.
> Something as simple as that.... can't do it because of java
> permissions (outside of lucene).
>
>  protected Weight createWeight(Searcher searcher) throws IOException {
>    return q.createWeight(searcher);  // we could call
> super.createWeight() but not q.createWeight() !
>  }
>
> createWeight seems somewhat expert-level, but not overly so, and it
> does seem like it should be public instead of projected.
> Thoughts?
>
> -Yonik
> http://www.lucidimagination.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>

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


Mime
View raw message