Procházet zdrojové kódy

fix #1048 remove geo property

Shinsuke Sugaya před 8 roky
rodič
revize
4f931a3745

+ 0 - 6
src/main/java/org/codelibs/fess/api/json/JsonApiManager.java

@@ -146,7 +146,6 @@ public class JsonApiManager extends BaseJsonApiManager {
             final String allPageCount = Integer.toString(data.getAllPageCount());
             final String allPageCount = Integer.toString(data.getAllPageCount());
             final List<Map<String, Object>> documentItems = data.getDocumentItems();
             final List<Map<String, Object>> documentItems = data.getDocumentItems();
             final FacetResponse facetResponse = data.getFacetResponse();
             final FacetResponse facetResponse = data.getFacetResponse();
-            final GeoInfo geoInfo = params.getGeoInfo();
             final String queryId = data.getQueryId();
             final String queryId = data.getQueryId();
 
 
             buf.append("\"q\":");
             buf.append("\"q\":");
@@ -251,11 +250,6 @@ public class JsonApiManager extends BaseJsonApiManager {
                     }
                     }
                     buf.append(']');
                     buf.append(']');
                 }
                 }
-                if (geoInfo != null && geoInfo.toQueryBuilder() != null) {
-                    buf.append(',');
-                    buf.append("\"geo\":");
-                    buf.append(toGeoRequestString(geoInfo));
-                }
             }
             }
         } catch (final Exception e) {
         } catch (final Exception e) {
             status = 1;
             status = 1;