favclip / smg Goto Github PK
View Code? Open in Web Editor NEWsearchapi model generator
License: MIT License
searchapi model generator
License: MIT License
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.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.