You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Doug Cutting <cu...@apache.org> on 2004/06/03 06:44:05 UTC
Re: question on design for ordering of field names written to FieldInfos
object
Peter M Cipollone wrote:
> I have a question about the following code from
> org.apache.lucene.index.SegmentMerger. I would like to know if the ordering
> of the fields as they are stored to the FieldInfos object is critical to
> some other purpose.
>
> In the code below (from a week+/- ago CVS pull), the fields are stored in
> the following order:
> 1. fields indexed=true, termVectors=true
> 2. fields indexed=true, termVectors=false
> 3. fields stored=true, indexed=false
I don't think it is critical to any other purpose, but nor do I think
one should require these to always be ordered the same way without a
very good reason. They didn't used to be ordered this way, and
implementations of Lucene in other language might order them differently.
Doug
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
Simple patch for broken link in javadoc of Weight.java
Posted by Paul Elschot <pa...@xs4all.nl>.
Regards,
Paul
Index: search/Weight.java
===================================================================
RCS file: /home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/search/Weight.java,v
retrieving revision 1.3
diff -u -r1.3 Weight.java
--- search/Weight.java 29 Mar 2004 22:48:04 -0000 1.3
+++ search/Weight.java 26 Jul 2004 16:55:40 -0000
@@ -25,7 +25,7 @@
* <p>A Weight is constructed by a query, given a Searcher ({@link
* Query#createWeight(Searcher)}). The {@link #sumOfSquaredWeights()} method
* is then called on the top-level query to compute the query normalization
- * factor (@link Similarity#queryNorm(float)}). This factor is then passed to
+ * factor {@link Similarity#queryNorm(float)}. This factor is then passed to
* {@link #normalize(float)}. At this point the weighting is complete and a
* scorer may be constructed by calling {@link #scorer(IndexReader)}.
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org