Package com.google.appengine.api.search

Examples of com.google.appengine.api.search.GeoPoint


        field = Field.newBuilder().setName("htmlfield").setHTML("<html>html field</html>").build();
        docBuilder.addField(field);
        User currentUser = new User("prometheus-qa@appenginetest.com", "appenginetest.com");
        field = Field.newBuilder().setName("atomfield").setAtom(currentUser.getAuthDomain()).build();
        docBuilder.addField(field);
        GeoPoint geoPoint = new GeoPoint((double) -10, 10.000001);
        field = Field.newBuilder().setName("geofield").setGeoPoint(geoPoint).build();
        docBuilder.addField(field);
        index.put(docBuilder);
        sync();
View Full Code Here


                int day = cal.get(Calendar.DATE) + i;
                dateVal += day;
                docBuilder.addField(Field.newBuilder().setName("datefield").setDate(dfDate.parse(dateVal)));
                docBuilder.addField(Field.newBuilder().setName("htmlfield").setHTML("<B>html</B> " + i));
                docBuilder.addField(Field.newBuilder().setName("atomfield").setAtom("atom" + i + ".com"));
                GeoPoint geoPoint = new GeoPoint((double) i, (double) (100 + i));
                docBuilder.addField(Field.newBuilder().setName("geofield").setGeoPoint(geoPoint));
                // two field in same name and with different field type
                docBuilder.addField(Field.newBuilder().setName("mixfield").setText("text and number mix field"));
                docBuilder.addField(Field.newBuilder().setName("mixfield").setNumber(987));
                docBuilder.setId("selfid" + i);
View Full Code Here

TOP

Related Classes of com.google.appengine.api.search.GeoPoint

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.