Examples of indexed()


Examples of com.sematext.searchschemer.index.FieldAttributes.indexed()

        .getResource("solr/test_schema_small.xml").getFile()));
    assertEquals(1, reader.readFields().size());
    FieldAttributes field = reader.readFields().get(0);
    assertEquals("id", field.name());
    assertEquals(FieldType.STRING, field.fieldType());
    assertTrue(field.indexed());
    assertTrue(field.store());
    assertFalse(field.analyzed());
  }
 
  @Test
View Full Code Here

Examples of com.sematext.searchschemer.index.FieldAttributes.indexed()

    assertEquals(1, reader.readFields().size());
    FieldAttributes field = reader.readFields().get(0);
    assertEquals("id", field.name());
    assertTrue(field.analyzed());
    assertTrue(field.multiValued());
    assertTrue(field.indexed());
    assertTrue(field.store());
    assertTrue(field.omitNorms());
    assertTrue(field.omitTermFrequencyAndPositions());
    assertEquals(2.0f, field.boost());
  }
View Full Code Here

Examples of com.sematext.searchschemer.index.FieldAttributes.indexed()

        .getResource("solr/test_schema_small_string_text.xml").getFile()));
    assertEquals(1, reader.readFields().size());
    FieldAttributes field = reader.readFields().get(0);
    assertEquals("id", field.name());
    assertEquals(FieldType.TEXT, field.fieldType());
    assertTrue(field.indexed());
    assertTrue(field.store());
    assertTrue(field.analyzed());
  }
 
  @Test
View Full Code Here

Examples of com.sematext.searchschemer.index.FieldAttributes.indexed()

        .getResource("solr/test_schema_additional_attributes.xml").getFile()));
    assertEquals(1, reader.readFields().size());
    FieldAttributes field = reader.readFields().get(0);
    assertEquals("id", field.name());
    assertEquals(FieldType.TEXT, field.fieldType());
    assertTrue(field.indexed());
    assertTrue(field.store());
    assertTrue(field.analyzed());
    assertTrue(field.omitNorms());
    assertTrue(field.omitTermFrequencyAndPositions());
    assertEquals(2.0f, field.boost());
View Full Code Here

Examples of com.tll.common.model.Model.indexed()

    final AccountAddress aa2 = getEntityBeanFactory().getEntityCopy(AccountAddress.class, true);
    e.addAccountAddress(aa1);
    e.addAccountAddress(aa2);

    final Model m = marshaler.marshalEntity(e, MarshalOptions.UNCONSTRAINED_MARSHALING);
    m.indexed("addresses[0]").getModel().setMarkedDeleted(true);

    final Account rea = marshaler.marshalModel(m, e);
    Assert.assertTrue(e == rea);
    Assert.assertTrue(e.equals(rea));
    Assert.assertEquals(rea.getVersion(), m.getProperty(Model.VERSION_PROPERTY));
View Full Code Here

Examples of org.apache.lucene.document.FieldType.indexed()

        ft.setIndexOptions(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS);
      }
      ft.setStored(getBoolean(cbStored, "selected"));
      ft.setIndexed(getBoolean(cbIndexed, "selected"));
      ft.setTokenized(getBoolean(cbTokenized, "selected"));
      if (ft.stored() == false && ft.indexed() == false) {
        errorMsg("Field '" + name + "' is neither stored nor indexed.");
        return false;
      }
      ft.setOmitNorms(getBoolean(cbONorms, "selected"));
      Field f;
View Full Code Here

Examples of org.apache.lucene.document.FieldType.indexed()

                mapper.put("fieldDataType", dataType.getType());
            }

            FieldType type = fieldMapper.fieldType();
            if (type != null) {
                mapper.put("indexed", type.indexed());
                mapper.put("stored", type.stored());
                mapper.put("tokenized", type.tokenized());
                mapper.put("omitNorms", type.omitNorms());
                mapper.put("storeTermVectors", type.storeTermVectors());
                mapper.put("storeTermVectorOffsets", type.storeTermVectorOffsets());
View Full Code Here

Examples of org.apache.solr.schema.SchemaField.indexed()

      result.add(document.getFieldValue(uniqueKeyField.getName()).toString(), theTokens);
      for (String name : document.getFieldNames()) {

        // there's no point of providing analysis to unindexed fields.
        SchemaField field = schema.getField(name);
        if (!field.indexed()) {
          continue;
        }

        NamedList<Object> fieldTokens = new SimpleOrderedMap<Object>();
        theTokens.add(name, fieldTokens);
View Full Code Here

Examples of org.apache.solr.schema.SchemaField.indexed()

      if (sfield != null && schema.isDynamicField(sfield.getName()) && schema.getDynamicPattern(sfield.getName()) != null) {
        f.add("dynamicBase", schema.getDynamicPattern(sfield.getName()));
      }

      // If numTerms==0, the call is just asking for a quick field list
      if( ttinfo != null && sfield != null && sfield.indexed() ) {
        Query q = new TermRangeQuery(fieldName,null,null,false,false);
        TopDocs top = searcher.search( q, 1 );
        if( top.totalHits > 0 ) {
          // Find a document with this field
          try {
View Full Code Here

Examples of org.apache.solr.schema.SchemaField.indexed()

      if (sfield != null && schema.isDynamicField(sfield.getName()) && schema.getDynamicPattern(sfield.getName()) != null) {
        f.add("dynamicBase", schema.getDynamicPattern(sfield.getName()));
      }

      // If numTerms==0, the call is just asking for a quick field list
      if( ttinfo != null && sfield != null && sfield.indexed() ) {
        Query q = new TermRangeQuery(fieldName,null,null,false,false);
        TopDocs top = searcher.search( q, 1 );
        if( top.totalHits > 0 ) {
          // Find a document with this field
          try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.