GithubHelp home page GithubHelp logo

Cannot index virtual attributes about retire HOT 2 CLOSED

karmi avatar karmi commented on September 15, 2024
Cannot index virtual attributes

from retire.

Comments (2)

karmi avatar karmi commented on September 15, 2024

Hey Jason,

no, you have to define the serialization in to_indexed_json; I've taken the hint and updated the documentation so it gives more examples.

Tire has different approach then the Sphinx and Solr gems, and divides the mapping and serialization declarations. With mapping, you define how your model JSON serialization should be understood by ES, with to_indexed_json, you define what is this serialization.

Is that OK for your use case?

from retire.

 avatar commented on September 15, 2024

Yea, this is what I wound up doing anyways. I made the assumption (incorrectly) that it used your mapping to dictate some of the serialization unless you used to_indexed_json. Your explanation though makes a lot of sense and cleared things up for me. Keep up the good work!

from retire.

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.