Package no.priv.garshol.duke

Examples of no.priv.garshol.duke.Property


    // find suitable records, since we don't know how to combine
    // geosearch ranking with normal search ranking.
    if (config.getLookupProperties().size() != 1)
      return;

    Property prop = config.getLookupProperties().iterator().next();
    if (!(prop.getComparator() instanceof GeopositionComparator))
      return;

    geoprop = new GeoProperty(prop);
  }
View Full Code Here


  }
 
  @Test
  public void testIgnoreProperty() throws IOException {
    // make email an ignored property
    Property prop = config.getPropertyByName("EMAIL");
    prop.setIgnoreProperty(true);

    // now run, and see that it doesn't match
    Collection<Record> records = new ArrayList();
    records.add(TestUtils.makeRecord("ID", "1", "NAME", "aaaaa", "EMAIL", "BBBBB"));
    records.add(TestUtils.makeRecord("ID", "2", "NAME", "aaaaa", "EMAIL", "BBBBB"));
View Full Code Here

TOP

Related Classes of no.priv.garshol.duke.Property

Copyright © 2018 www.massapicom. 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.