[
https://issues.apache.org/jira/browse/LUCENE-3312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409481#comment-13409481
]
Uwe Schindler commented on LUCENE-3312:
---------------------------------------
Maybe you missed to clean before? ANT's javac only compiles files not yet
compiled, so warnings only show on first time?
{noformat}
C:\Users\Uwe Schindler\Projects\lucene\lucene3312\lucene\core>ant clean compile
Buildfile: C:\Users\Uwe
Schindler\Projects\lucene\lucene3312\lucene\core\build.xml
clean:
jflex-uptodate-check:
jflex-notice:
javacc-uptodate-check:
javacc-notice:
ivy-availability-check:
ivy-fail:
ivy-configure:
[ivy:configure] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::
[ivy:configure] :: loading settings :: file = C:\Users\Uwe
Schindler\Projects\lucene\lucene3312\lucene\ivy-settings.xml
resolve:
init:
clover.setup:
clover.info:
[echo]
[echo] Clover not found. Code coverage reports disabled.
[echo]
clover:
common.compile-core:
[mkdir] Created dir: C:\Users\Uwe
Schindler\Projects\lucene\lucene3312\lucene\build\core\classes\java
[javac] Compiling 634 source files to C:\Users\Uwe
Schindler\Projects\lucene\lucene3312\lucene\build\core\classes\java
[javac] C:\Users\Uwe
Schindler\Projects\lucene\lucene3312\lucene\core\src\java\org\apache\lucene\index\DocFieldProcessor.java:24
3: warning: [cast] redundant cast to org.apache.lucene.index.StorableField
[javac] consumer.add(docState.docID, (StorableField) field);
[javac] ^
[javac] C:\Users\Uwe
Schindler\Projects\lucene\lucene3312\lucene\core\src\java\org\apache\lucene\index\NormsConsumerPerField.jav
a:57: warning: [cast] redundant cast to org.apache.lucene.index.StorableField
[javac] consumer.add(docState.docID, (StorableField) field);
[javac] ^
[javac] 2 warnings
[copy] Copying 2 files to C:\Users\Uwe
Schindler\Projects\lucene\lucene3312\lucene\build\core\classes\java
compile-core:
compile:
BUILD SUCCESSFUL
Total time: 13 seconds
{noformat}
> Break out StorableField from IndexableField
> -------------------------------------------
>
> Key: LUCENE-3312
> URL: https://issues.apache.org/jira/browse/LUCENE-3312
> Project: Lucene - Java
> Issue Type: Improvement
> Components: core/index
> Reporter: Michael McCandless
> Assignee: Nikola Tankovic
> Labels: gsoc2012, lucene-gsoc-12
> Fix For: Field Type branch
>
> Attachments: lucene-3312-patch-01.patch, lucene-3312-patch-02.patch,
> lucene-3312-patch-03.patch, lucene-3312-patch-04.patch,
> lucene-3312-patch-05.patch, lucene-3312-patch-06.patch,
> lucene-3312-patch-07.patch
>
>
> In the field type branch we have strongly decoupled
> Document/Field/FieldType impl from the indexer, by having only a
> narrow API (IndexableField) passed to IndexWriter. This frees apps up
> use their own "documents" instead of the "user-space" impls we provide
> in oal.document.
> Similarly, with LUCENE-3309, we've done the same thing on the
> doc/field retrieval side (from IndexReader), with the
> StoredFieldsVisitor.
> But, maybe we should break out StorableField from IndexableField,
> such that when you index a doc you provide two Iterables -- one for the
> IndexableFields and one for the StorableFields. Either can be null.
> One downside is possible perf hit for fields that are both indexed &
> stored (ie, we visit them twice, lookup their name in a hash twice,
> etc.). But the upside is a cleaner separation of concerns in API....
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]