lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Rowe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6706) Support Payload scoring for all SpanQueries
Date Mon, 03 Aug 2015 16:47:05 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-6706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14652079#comment-14652079
] 

Steve Rowe commented on LUCENE-6706:
------------------------------------

Compilation is failing on trunk in the queryparser module:

{noformat}
common.compile-core:
    [mkdir] Created dir: /Users/sarowe/svn/lucene/dev/trunk/lucene/build/queryparser/classes/java
    [javac] Compiling 224 source files to /Users/sarowe/svn/lucene/dev/trunk/lucene/build/queryparser/classes/java
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BoostingTermBuilder.java:5:
error: cannot find symbol
    [javac] import org.apache.lucene.search.payloads.PayloadTermQuery;
    [javac]                                         ^
    [javac]   symbol:   class PayloadTermQuery
    [javac]   location: package org.apache.lucene.search.payloads
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BoostingTermBuilder.java:29:
error: reference not found
    [javac]  * Builder for {@link PayloadTermQuery}
    [javac]                       ^
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/QueryParserTokenManager.java:493:
warning: [cast] redundant cast to int
    [javac]          int hiByte = (int)(curChar >> 8);
    [javac]                       ^
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/QueryParserTokenManager.java:687:
warning: [cast] redundant cast to int
    [javac]          int hiByte = (int)(curChar >> 8);
    [javac]                       ^
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/QueryParserTokenManager.java:860:
warning: [cast] redundant cast to int
    [javac]          int hiByte = (int)(curChar >> 8);
    [javac]                       ^
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumericConfig.java:32:
warning: [overrides] Class NumericConfig overrides equals, but neither it nor any superclass
overrides hashCode method
    [javac] public class NumericConfig {
    [javac]        ^
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParserTokenManager.java:375:
warning: [cast] redundant cast to int
    [javac]          int hiByte = (int)(curChar >> 8);
    [javac]                       ^
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParserTokenManager.java:495:
warning: [cast] redundant cast to int
    [javac]          int hiByte = (int)(curChar >> 8);
    [javac]                       ^
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParserTokenManager.java:668:
warning: [cast] redundant cast to int
    [javac]          int hiByte = (int)(curChar >> 8);
    [javac]                       ^
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParserTokenManager.java:348:
warning: [cast] redundant cast to int
    [javac]          int hiByte = (int)(curChar >> 8);
    [javac]                       ^
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParserTokenManager.java:468:
warning: [cast] redundant cast to int
    [javac]          int hiByte = (int)(curChar >> 8);
    [javac]                       ^
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/RewriteQuery.java:64:
warning: [rawtypes] found raw type: RewriteQuery
    [javac]     RewriteQuery other = (RewriteQuery)obj;
    [javac]     ^
    [javac]   missing type arguments for generic class RewriteQuery<SQ>
    [javac]   where SQ is a type-variable:
    [javac]     SQ extends SrndQuery declared in class RewriteQuery
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/OrQuery.java:43:
warning: [rawtypes] found raw type: Iterator
    [javac]     Iterator sqi = getSubQueriesIterator();
    [javac]     ^
    [javac]   missing type arguments for generic class Iterator<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Iterator
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/OrQuery.java:60:
warning: [rawtypes] found raw type: Iterator
    [javac]     Iterator sqi = getSubQueriesIterator();
    [javac]     ^
    [javac]   missing type arguments for generic class Iterator<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Iterator
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/QueryTemplateManager.java:179:
warning: [rawtypes] found raw type: Enumeration
    [javac]     Enumeration keysEnum = formProperties.keys();
    [javac]     ^
    [javac]   missing type arguments for generic class Enumeration<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Enumeration
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BoostingTermBuilder.java:38:
error: cannot find symbol
    [javac]     PayloadTermQuery btq = new PayloadTermQuery(new Term(fieldName, value), new
AveragePayloadFunction());
    [javac]     ^
    [javac]   symbol:   class PayloadTermQuery
    [javac]   location: class BoostingTermBuilder
    [javac] /Users/sarowe/svn/lucene/dev/trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BoostingTermBuilder.java:38:
error: cannot find symbol
    [javac]     PayloadTermQuery btq = new PayloadTermQuery(new Term(fieldName, value), new
AveragePayloadFunction());
    [javac]                                ^
    [javac]   symbol:   class PayloadTermQuery
    [javac]   location: class BoostingTermBuilder
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 4 errors
    [javac] 13 warnings
{noformat}

> Support Payload scoring for all SpanQueries
> -------------------------------------------
>
>                 Key: LUCENE-6706
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6706
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: core/query/scoring
>    Affects Versions: 5.2.1
>            Reporter: Jamie Johnson
>            Assignee: Alan Woodward
>            Priority: Minor
>             Fix For: 5.3
>
>         Attachments: LUCENE-6706.patch, PayloadSpanOrQuery.java
>
>
> I need a way to have payloads influence the score of SpanOrQuery's.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message