搜索引擎(如全文查询)对ActiveRecord的支持-Ruby开发

时间:2021-05-27 11:39:50
【文件属性】:
文件名称:搜索引擎(如全文查询)对ActiveRecord的支持-Ruby开发
文件大小:37KB
文件格式:ZIP
更新时间:2021-05-27 11:39:50
Ruby API Builder SearchCop SearchCop扩展了ActiveRecord模型,以支持全文搜索引擎,例如通过简单查询字符串和基于散列的查询的查询。 假设您有一个Book模型,具有各种属性,例如标题,作者,SearchCop SearchCop扩展了ActiveRecord模型以支持全文搜索引擎,例如通过简单查询字符串和基于散列的查询的查询。 假设您有一个Book模型,该模型具有各种属性,例如书名,作者,股票,价格,可用。 使用SearchCop,您可以执行:Book.search(“ Joanne Rowling哈利·波特”)Book.search(“作者:罗琳标题:'Harry Potter'”)Book.search(“ price> 10 AND price <20 -stock:0( Potter OR Rowling)“)#...因此,您可以分发搜索查询str
【文件预览】:
search_cop-master
----.gitignore(170B)
----README.md(21KB)
----.rubocop.yml(2KB)
----gemfiles()
--------rails6.gemfile(187B)
--------rails5.gemfile(187B)
----CHANGELOG.md(2KB)
----.github()
--------workflows()
----test()
--------database.yml(286B)
--------or_test.rb(808B)
--------not_test.rb(757B)
--------default_operator_test.rb(2KB)
--------visitor_test.rb(6KB)
--------fulltext_test.rb(747B)
--------hash_test.rb(3KB)
--------boolean_test.rb(1KB)
--------string_test.rb(5KB)
--------datetime_test.rb(4KB)
--------float_test.rb(2KB)
--------scope_test.rb(2KB)
--------integer_test.rb(2KB)
--------error_test.rb(370B)
--------search_cop_test.rb(4KB)
--------date_test.rb(3KB)
--------and_test.rb(917B)
--------test_helper.rb(4KB)
----Gemfile(161B)
----search_cop.gemspec(1KB)
----docker-compose.yml(349B)
----CONTRIBUTING.md(466B)
----LICENSE.txt(1KB)
----lib()
--------search_cop.rb(2KB)
--------search_cop_grammar()
--------search_cop_grammar.treetop(2KB)
--------search_cop_grammar.rb(3KB)
--------search_cop()
----Rakefile(161B)
----MIGRATION.md(2KB)

网友评论