GithubHelp home page GithubHelp logo

googlecloudplatform / appengine-search-python-java Goto Github PK

View Code? Open in Web Editor NEW
70.0 77.0 83.0 105 KB

Examples showing how to use the App Engine Search API.

License: Apache License 2.0

Java 10.60% JavaScript 6.04% Python 60.69% CSS 4.32% HTML 18.35%

appengine-search-python-java's Introduction

App Engine Search API examples

A set of examples showing how to use the App Engine Search API.

There are two simple examples, one written in Java (the java directory) and one written in Python (the python) directory. The product_search_python directory holds a more complex example— a product search app— written in Python.

appengine-search-python-java's People

Contributors

amygdala avatar danholevoet avatar topless avatar tswast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

appengine-search-python-java's Issues

search works hard-coded but not with document property

I am trying to implement something similar to the example from google.
the example shows how to search for nearby points with the query:
distance(location , geopoint(11.1 , 12.3)) < 100000
I am trying to build an app where a professional can choose a max work radius , above which he will not get job offers , so just like the location field of the document , I put a max_radius NumberField which is going to be different for each document.

this is the code:

fields = [search.GeoField(name='location', value=search.GeoPoint(11.2, 12.4)),
          search.NumberField(name='max_radius', value=453786435)]

doc = search.Document(doc_id='example', fields=fields)

search.Index('Professional').put(doc)

print search.Index('Professional').search('distance(location , geopoint(11.1 , 12.3)) < max_radius')

getting:

RuntimeError: ValueError('could not convert string to float: max_radius',)

when the query is replaced to distance(location , geopoint(11.1 , 12.3)) < 1000000 , it works as expected.

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.