Package com.sematext.searchschemer.index

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


    assertEquals("contents", field.name());
    assertEquals(FieldType.TEXT, field.fieldType());
    assertTrue(field.store());
    assertTrue(field.analyzed());
    assertTrue(field.multiValued());
    assertTrue(field.indexed());
  }
}
View Full Code Here


    FieldAttributes field = reader.readFields().get(0);
    assertEquals("id", field.name());
    assertEquals(FieldType.LONG, field.fieldType());
    assertTrue(field.analyzed());
    assertTrue(field.multiValued());
    assertTrue(field.indexed());
    assertFalse(field.store());
  }
 
  @Test
  public void testReaderMultiField() throws Exception {
View Full Code Here

    }
    // field 1
    assertEquals("test", field1.name());
    assertTrue(field1.analyzed());
    assertTrue(field1.multiValued());
    assertTrue(field1.indexed());
    assertTrue(field1.store());
    // field 2
    assertEquals("test.facet", field2.name());
    assertFalse(field2.analyzed());
    assertTrue(field2.multiValued());
View Full Code Here

        .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

    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

        .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

        .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

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.