{"repo":"dimamik/torus","free":true,"listed":false,"github":"https://github.com/dimamik/torus","clone":"git clone https://github.com/dimamik/torus.git","description":"Torus bridges Ecto and PostgreSQL, simplifying building search queries.","language":"Elixir","stars":255,"topics":["elixir","postgresql","search"],"license":"MIT","category":"databases-storage","readme_excerpt":"Torus Torus is a plug-and-play Elixir library that seamlessly integrates PostgreSQL's search into Ecto, streamlining the construction of advanced search queries. See live demo for examples. Usage The package can be installed by adding torus to your list of dependencies in mix.exs : Then, in any query, you can (for example) add a prefixed full-text search: See full text/5 for more details. 7 types of search: 1. Pattern matching : Searches for a specific pattern in a string. Use it for fast prefix-search when semantics of the data you search through live in its characters. For example phone number, invoice number, email, filename, etc. See like/5 , ilike/5 , and similar to/5 for more details. 1. Similarity: Searches for records that closely match the input text using trigram distance. Use it for fuzzy matching and catching typos in short text fields, such as names or titles. Works best with short strings. See similarity/5 for more details. 1. Full text : Uses term-document matrix vectors, enabling efficient querying and ranking based on term frequency. Supports prefix search and is great for large datasets to quickly return relevant results. See PostgreSQL Full Text Search for internal implementation details. Use it when you don't care about spelling, the documents are long, you need multi-column search with weights, or if you need to order the results by rank. See full text/5 for more details. 1. BM25 full text : Modern BM25 ranking algorithm for superior relevance scoring usi","default_branch":null,"files":null,"tree":[],"storefront":"/r/dimamik","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dimamik/torus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}