Coder Social home page Coder Social logo

smg's People

Contributors

favclip-develop avatar shota-takahashi-tg avatar vvakame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

smg's Issues

Question: text search

Hi,

I don't know a lot about the terminology, but what I want is full text search on my entities. For example, in the usecase test, I want to search by a string and it should match against all the fields in the entity (like ProductName, Description, Shops). I could maintain a separate field for this, but please let me know is it easily possible with this package?

thanks.
bsr.

build error by auto-generated file `imported and not used: "strconv"`

Hello,
Thank you a lot for this package. It will be a great help to our Japanese full-text search function.

By the way, I encountered a problem as the title of this issue when I start to use this (latest version 812be11 ).
I only tried to autogen one struct as below:

// +smg
type ChatLog struct {
	ApplicantID string    `search:",string"`
	Body        string    `search:",ngram"`
	Created     time.Time `search:",unixtime"`
}

I checked into codes and this line seem to cause this.
https://github.com/favclip/smg/blob/master/generator.go#L82

thanks again

build query from json

Hello,
Thank you for this package. The query builder is good to construct it at the server, but it would be great to have a way to build query from a specification, like json object. say, we have a query struct

type filter struct {
    fieldName string
    op        string
    value     interface{}
}

type Query struct {
    filter []filter
    order  []order

    limit  int
    offset int

    keysOnly bool
}

if, there is a way to build a query, from this struct, then we can construct query from a json/client request. Do you think it is viable, and any plan for it. Else, how do you typically handle a query from client?

thanks again,
bsr.

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.