Solrorm : A sort-of solr ORM for python

solrpy – deprecated solrorm – currently in dev Usage Cores The first step to interact with solr using solrorm is to define a core.Core objects can be initialized using the solrorm.cores.Core class. Example from solrorm.cores import Core my_core = Core(host=’xxx.xx.x.xxx’, port = 8983, core_name = ‘core_name_here’, fields = [‘title’, ‘authors’]) Queries queries helps us to filter records from solr. Using solrorm, we can pass arguments and various ‘magic’ arguments to filter records.A few example are shown below.Example results = my_core.objects.query(organizations=”twitter […]

Read more

A selection of a few algorithms used to sort or search an array in python

Sort and search algorithms This repository has some common search / sort algorithms written in python, I also included the pseudocode of each algorithm alongside the actual code. Algorithms: Search Algorithms Linear Search Binary Search Step Search Sort Algorithms Bubble Sort Insertion Sort Selection Sort Notes New algorithms will most likely not be added, the only things I may add in the near future are the advantages / disadvantages of each algorithm. GitHub https://github.com/RysteQ/Sort-and-search-algorithms    

Read more