/** * Calls three parameter add with false for the storeTermVector parameter * @param name The name of the Field * @param isIndexed true if the field is indexed * @see #add(String, boolean, boolean) */ public void add(String name, boolean isIndexed) { add(name, isIndexed, false); }
/** * Calls 5 parameter add with false for term vector positions and offsets. * * @param name The name of the field * @param isIndexed true if the field is indexed * @param storeTermVector true if the term vector should be stored */ synchronized public void add(String name, boolean isIndexed, boolean storeTermVector){ add(name, isIndexed, storeTermVector, false, false, false); }
/** * Calls 5 parameter add with false for all TermVector parameters. * * @param name The name of the Fieldable * @param isIndexed true if the field is indexed * @see #add(String, boolean, boolean, boolean, boolean) */ synchronized public void add(String name, boolean isIndexed) { add(name, isIndexed, false, false, false, false); }
/** * Calls 5 parameter add with false for all TermVector parameters. * * @param name The name of the Fieldable * @param isIndexed true if the field is indexed * @see #add(String, boolean, boolean, boolean, boolean) */ synchronized public void add(String name, boolean isIndexed) { add(name, isIndexed, false, false, false, false); }
/** * Calls 5 parameter add with false for term vector positions and offsets. * * @param name The name of the field * @param isIndexed true if the field is indexed * @param storeTermVector true if the term vector should be stored */ synchronized public void add(String name, boolean isIndexed, boolean storeTermVector){ add(name, isIndexed, storeTermVector, false, false, false); }
FieldInfos() { add("", false); }
/** If the field is not yet known, adds it. If it is known, checks to make * sure that the isIndexed flag is the same as was given previously for this * field. If not - marks it as being indexed. Same goes for the TermVector * parameters. * * @param name The name of the field * @param isIndexed true if the field is indexed * @param storeTermVector true if the term vector should be stored * @param storePositionWithTermVector true if the term vector with positions should be stored * @param storeOffsetWithTermVector true if the term vector with offsets should be stored * @param omitNorms true if the norms for the indexed field should be omitted */ synchronized public void add(String name, boolean isIndexed, boolean storeTermVector, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector, boolean omitNorms) { add(name, isIndexed, storeTermVector, storePositionWithTermVector, storeOffsetWithTermVector, omitNorms, false, false); }
/** If the field is not yet known, adds it. If it is known, checks to make * sure that the isIndexed flag is the same as was given previously for this * field. If not - marks it as being indexed. Same goes for the TermVector * parameters. * * @param name The name of the field * @param isIndexed true if the field is indexed * @param storeTermVector true if the term vector should be stored * @param storePositionWithTermVector true if the term vector with positions should be stored * @param storeOffsetWithTermVector true if the term vector with offsets should be stored */ synchronized public void add(String name, boolean isIndexed, boolean storeTermVector, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector) { add(name, isIndexed, storeTermVector, storePositionWithTermVector, storeOffsetWithTermVector, false); }
/** If the field is not yet known, adds it. If it is known, checks to make * sure that the isIndexed flag is the same as was given previously for this * field. If not - marks it as being indexed. Same goes for the TermVector * parameters. * * @param name The name of the field * @param isIndexed true if the field is indexed * @param storeTermVector true if the term vector should be stored * @param storePositionWithTermVector true if the term vector with positions should be stored * @param storeOffsetWithTermVector true if the term vector with offsets should be stored */ synchronized public void add(String name, boolean isIndexed, boolean storeTermVector, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector) { add(name, isIndexed, storeTermVector, storePositionWithTermVector, storeOffsetWithTermVector, false); }
/** * @param names The names of the fields * @param storeTermVectors Whether the fields store term vectors or not */ public void addIndexed(Collection names, boolean storeTermVectors) { Iterator i = names.iterator(); int j = 0; while (i.hasNext()) { add((String)i.next(), true, storeTermVectors); } }
/** * Assumes the fields are not storing term vectors. * * @param names The names of the fields * @param isIndexed Whether the fields are indexed or not * * @see #add(String, boolean) */ synchronized public void add(Collection names, boolean isIndexed) { Iterator i = names.iterator(); while (i.hasNext()) { add((String)i.next(), isIndexed); } }
/** * Add fields that are indexed. Whether they have termvectors has to be specified. * * @param names The names of the fields * @param storeTermVectors Whether the fields store term vectors or not * @param storePositionWithTermVector treu if positions should be stored. * @param storeOffsetWithTermVector true if offsets should be stored */ synchronized public void addIndexed(Collection names, boolean storeTermVectors, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector) { Iterator i = names.iterator(); while (i.hasNext()) { add((String)i.next(), true, storeTermVectors, storePositionWithTermVector, storeOffsetWithTermVector); } }
/** * Assumes the field is not storing term vectors * @param names The names of the fields * @param isIndexed Whether the fields are indexed or not * * @see #add(String, boolean) */ public void add(Collection names, boolean isIndexed) { Iterator i = names.iterator(); int j = 0; while (i.hasNext()) { add((String)i.next(), isIndexed); } }
/** * Assumes the fields are not storing term vectors. * * @param names The names of the fields * @param isIndexed Whether the fields are indexed or not * * @see #add(String, boolean) */ synchronized public void add(Collection names, boolean isIndexed) { Iterator i = names.iterator(); while (i.hasNext()) { add((String)i.next(), isIndexed); } }
/** * Add fields that are indexed. Whether they have termvectors has to be specified. * * @param names The names of the fields * @param storeTermVectors Whether the fields store term vectors or not * @param storePositionWithTermVector treu if positions should be stored. * @param storeOffsetWithTermVector true if offsets should be stored */ synchronized public void addIndexed(Collection names, boolean storeTermVectors, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector) { Iterator i = names.iterator(); while (i.hasNext()) { add((String)i.next(), true, storeTermVectors, storePositionWithTermVector, storeOffsetWithTermVector); } }
private void addIndexed(IndexReader reader, FieldInfos fieldInfos, Collection names, boolean storeTermVectors, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector, boolean storePayloads, boolean omitTf) throws IOException { Iterator i = names.iterator(); while (i.hasNext()) { String field = (String)i.next(); fieldInfos.add(field, true, storeTermVectors, storePositionWithTermVector, storeOffsetWithTermVector, !reader.hasNorms(field), storePayloads, omitTf); } }
private void addIndexed(IndexReader reader, FieldInfos fieldInfos, Collection names, boolean storeTermVectors, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector, boolean storePayloads, boolean omitTf) throws IOException { Iterator i = names.iterator(); while (i.hasNext()) { String field = (String)i.next(); fieldInfos.add(field, true, storeTermVectors, storePositionWithTermVector, storeOffsetWithTermVector, !reader.hasNorms(field), storePayloads, omitTf); } }
/** Adds field info for a Document. */ public void add(Document doc) { Enumeration fields = doc.fields(); while (fields.hasMoreElements()) { Field field = (Field) fields.nextElement(); add(field.name(), field.isIndexed(), field.isTermVectorStored()); } }
/** Adds field info for a Document. */ synchronized public void add(Document doc) { List fields = doc.getFields(); Iterator fieldIterator = fields.iterator(); while (fieldIterator.hasNext()) { Fieldable field = (Fieldable) fieldIterator.next(); add(field.name(), field.isIndexed(), field.isTermVectorStored(), field.isStorePositionWithTermVector(), field.isStoreOffsetWithTermVector(), field.getOmitNorms()); } }
/** Adds field info for a Document. */ synchronized public void add(Document doc) { List fields = doc.getFields(); Iterator fieldIterator = fields.iterator(); while (fieldIterator.hasNext()) { Fieldable field = (Fieldable) fieldIterator.next(); add(field.name(), field.isIndexed(), field.isTermVectorStored(), field.isStorePositionWithTermVector(), field.isStoreOffsetWithTermVector(), field.getOmitNorms()); } }