Giter Site home page Giter Site logo

Comments (9)

sjudeng avatar sjudeng commented on June 15, 2024

Just merged in commit that might help with this. It includes a new store configuration parameter, search_indices. The original parameter, index_name, defines the specific index used to read the type, and the new parameter, search_indices, is used for reading features.

from elasticgeo.

giaconiamark avatar giaconiamark commented on June 15, 2024

nice... I'll give it a try thanks!

from elasticgeo.

giaconiamark avatar giaconiamark commented on June 15, 2024

I was able to build and deploy to GeoServer, and i input my search indexes no problem to create a store. I also created a layer and published it, but i cannot preview via GeoServer's "preview layer" tool in Openlayers. Not sure if it matters, but my index is of mixed geometry types (geo_shape)

from elasticgeo.

sjudeng avatar sjudeng commented on June 15, 2024

Was it working before? Any error messages in the logs?

from elasticgeo.

sjudeng avatar sjudeng commented on June 15, 2024

Are you able to see data when you click GML on the Layer Preview page? If so, try copying the OpenLayers link into another tab and then add "&maxFeatures=1000" to the end.

from elasticgeo.

giaconiamark avatar giaconiamark commented on June 15, 2024

this is what I got...


error:java.lang.RuntimeException: java.io.IOException: Error executing query search java.lang.RuntimeException: java.io.IOException: Error executing query search java.io.IOException: Error executing query search Error executing query search

from elasticgeo.

giaconiamark avatar giaconiamark commented on June 15, 2024

that was for the GML output

from elasticgeo.

sjudeng avatar sjudeng commented on June 15, 2024

I just pushed an update that adds more logging around the search. To get this in your logs, you'll have to increase the logging level to FINE. If using Tomcat, edit TOMCAT_ROOT/conf/logging.properties and add the below line.

mil.nga.giat.level=FINE

Then try hitting GML again. This should show you the request being executed (see example below) and the error stack trace.

May 01, 2015 4:35:28 PM mil.nga.giat.data.elasticsearch.ElasticFeatureSource prepareSearchRequest
FINE: {
  "from" : 0,
  "size" : 50,
  "query" : {
    "match_all" : { }
  },
  "post_filter" : {
    "match_all" : { }
  },
  "_source" : {
    "includes" : [ "_id", "_index", "_type", "_score", "_relative_score", "status_s", "id", "security_ss", "standard_ss", "speed_is", "geo3", "modem_b", "installed_tdt", "vendor_s" ],
    "excludes" : [ ]
  },
  "sort" : [ {
    "_uid" : {
      "order" : "asc"
    }
  } ]
}

from elasticgeo.

giaconiamark avatar giaconiamark commented on June 15, 2024

I'll try to get back to this next week, so far so good. But as I look at the code, and the fact that I have mixed geometry types, I am tinkering with the idea of being able to register an actual query as a datasource definition, rather than an index or index alias. Kind of like a "view" in a traditional database.

from elasticgeo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.