Giter Club home page Giter Club logo

Comments (6)

dougcole avatar dougcole commented on August 22, 2024

That definitely seems like an odd response, but I would need more information to help debug your issue. If you could show me the code you ran that got this error I might be able to offer more advice.

from rets.

dougcole avatar dougcole commented on August 22, 2024

Closing this for now, if you want to discuss further @edenlin18, feel free to add more information and reopen.

from rets.

edenlin18 avatar edenlin18 commented on August 22, 2024

Sorry to reply this late. was caught up with my work lately.
I am not able to re-open this issue as it was closed by a repo collaborator.

The code I was using is as follows:
result = client.find :all, search_type: search_resource,
class: search_class,
query: search_query,
limit: search_limit
where
search_resource = 'OpenHouse'
search_class = 'OpenHouse'
search_query = '(ListingKeyNumeric=#some_numeric_val#),(OpenHouseStatus=ACT)'
limit = 0

Please let me know if I am using your library incorrectly.
Thanks!

from rets.

nanosplit avatar nanosplit commented on August 22, 2024

Unless I'm misunderstanding things, I believe your query needs to use select like this:

search_resource = 'OpenHouse'
search_class = 'OpenHouse'
search_query = 'ListingKeyNumeric=#some_numeric_val#'
search_select = 'OpenHouseStatus=ACT'
search_limit = 0

result = client.find :all, search_type: search_resource, class: search_class, query: search_query, select: search_select, limit: search_limit

See client.rb

from rets.

edenlin18 avatar edenlin18 commented on August 22, 2024

@nanosplit thanks for your comment.
I am not sure why I need to use select in this case.
My intention is to get all fields of active open house.
select seems to apply in cases where you only want subset of fields from the data that mls is returning.

Please correct me if I am wrong.
Thanks in advance.

from rets.

nanosplit avatar nanosplit commented on August 22, 2024

@edenlin18 sorry for the late reply, I never received a notice =\

Correct, select returns just that set of fields. Your query looked similar to our providers example for using select, so I just connected those dots.

Unfortunately I'm not sure how you're supposed to search based on multiple conditions like you're needing, we just pull all the data from our provider then handle the queries in the app.

from rets.

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.