{ "info": { "author": "Mikko Hellsing", "author_email": "mikko@aino.se", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-pgindex\n==============\n\nSearch for Django and PostgreSQL.\n\n\nRequirements\n------------\n* Django >= 1.1\n* django-stringfield >= 0.1.5\n* django-cerial >= 0.0.2\n\n\nInstallation\n------------\nFirst install the package from pypi using pip::\n\n pip install django-pgindex\n\n\nThen make ``pgindex`` an app in your ``INSTALLED_APPS``::\n\n INSTALLED_APPS = (\n ...\n 'pgindex',\n ...\n )\n\nSync your database::\n\n python manage.py syncdb\n\nDone.\n\nUsage\n-----\nCreate and Index class and register it to your model, much like registering an\nadmin class to your model. Example::\n\n # models.py\n from django.db import models\n from .index import ItemIndex\n from pgindex import register\n\n class Item(models.Model):\n title = models.CharField(max_length=100)\n content = models.TextField()\n\n def get_absolute_url(self):\n return '/item/'\n\n register(Item, ItemIndex)\n\n\n # index.py\n from pgindex import IndexBase, Vector\n\n class ItemIndex(IndexBase):\n def get_title(self):\n return self.obj.title\n\n def get_description(self):\n return self.obj.content\n\n def get_vectors(self):\n return (\n Vector(self.obj.title, weight='A'),\n Vector(self.obj.content, weight='B'),\n )\n\nTo search simply use the ``pgindex.search`` method which returns a queryset\nfrom the ``pgindex.models.Index`` model::\n\n from pgindex import search\n\n index_queryset = search('foo')\n\n\nSee tests for examples.\n\n\npgindex.IndexBase methods\n-------------------------\n\nget_title()\n^^^^^^^^^^^\nThis should return the title of the indexed object.\n\nget_description()\n^^^^^^^^^^^^^^^^^\nThis should return the description of the indexed object.\n\nget_url()\n^^^^^^^^^\nThis should return the url of the indexed object.\n\nget_data()\n^^^^^^^^^^\nYou can return additional data that will be stored in the index field here, this\nvalue will be pickled and depickled.\n\nget_publish()\n^^^^^^^^^^^^^^^\nIf this returns ``False`` and index will not be created\n\nget_start_publish()\n^^^^^^^^^^^^^^^^^^^\nCan return a ``datetime.datetime`` which is the time when the index will be used.\nReturning ``None`` means that it will always be used.\n\nget_end_publish()\n^^^^^^^^^^^^^^^^^\nCan return a ``datetime.datetime`` which is the time for the index expiration.\nReturning ``None`` means that it will never expire.\n\nget_vectors()\n^^^^^^^^^^^^^\nThis method needs to return a list or tuple of ``pgindex.Vector``\ninstances. This in turn is the base for the text search column.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aino/django-pgindex", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-pgindex", "package_url": "https://pypi.org/project/django-pgindex/", "platform": "any", "project_url": "https://pypi.org/project/django-pgindex/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/aino/django-pgindex" }, "release_url": "https://pypi.org/project/django-pgindex/0.8.2/", "requires_dist": null, "requires_python": null, "summary": "Search for Django and PostgreSQL", "version": "0.8.2" }, "last_serial": 4528499, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "7edd2f8692695064d088427e3c4d1144", "sha256": "8d9fdae22d1b79c31c2aa4f0ab17021e94e2836ee5a9819f5c34c8366415cd30" }, "downloads": -1, "filename": "django-pgindex-0.2.tar.gz", "has_sig": false, "md5_digest": "7edd2f8692695064d088427e3c4d1144", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4302, "upload_time": "2011-02-05T15:45:14", "url": "https://files.pythonhosted.org/packages/1b/48/d6200c3aeb819aa103de909216415200d9c41c660a2e0d3bd948c313844c/django-pgindex-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "8161bbb8a9e46ca10dbe690d0066ae9c", "sha256": "70ce24e5f083a19c08301bcb07b73a6c4871de23d24874592fb4d3701b5aa2ba" }, "downloads": -1, "filename": "django-pgindex-0.3.tar.gz", "has_sig": false, "md5_digest": "8161bbb8a9e46ca10dbe690d0066ae9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4496, "upload_time": "2011-02-15T07:10:23", "url": "https://files.pythonhosted.org/packages/42/55/247053120a8ba38090e0345f6f3a2b70d51fea462b2a080a74bc5ca8d3ce/django-pgindex-0.3.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "c98c51317ffa67da2c454742e28a45d5", "sha256": "b4498a2cbb828e9a6d0584d299d02c8ed0eca14cd48aef5d66681107ac5d79c1" }, "downloads": -1, "filename": "django-pgindex-0.4.0.tar.gz", "has_sig": false, "md5_digest": "c98c51317ffa67da2c454742e28a45d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5925, "upload_time": "2011-06-16T16:31:31", "url": "https://files.pythonhosted.org/packages/7b/d5/00dc6b6d41e083e1b03f50be036505073d1b8bb0d89f7c0b6069e230c331/django-pgindex-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "e37d11e35a544ad5ada2bdf4abbb087b", "sha256": "867c29e2e99c96a93a5c08c692bafecf66aa34ef9b4d592c8ee20f2fd4bdd311" }, "downloads": -1, "filename": "django-pgindex-0.5.0.tar.gz", "has_sig": false, "md5_digest": "e37d11e35a544ad5ada2bdf4abbb087b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6067, "upload_time": "2011-06-17T11:30:12", "url": "https://files.pythonhosted.org/packages/c7/64/c97c42ab19a803fc1539d5b9f2c4d5f51a95012cb9b68cc105e0fef93fcf/django-pgindex-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "36b2f96c330b32fd1c21fcab3660cd4e", "sha256": "9bd35c36c48cd8917716073d7da879b3f8b73e8ba49b6e9e2a36dc693699b182" }, "downloads": -1, "filename": "django-pgindex-0.5.1.tar.gz", "has_sig": false, "md5_digest": "36b2f96c330b32fd1c21fcab3660cd4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6035, "upload_time": "2011-06-18T10:51:31", "url": "https://files.pythonhosted.org/packages/5e/5c/dc01d11eb465438743e651b9efdd057dfcdb8667f46118eae9a419790e46/django-pgindex-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "a7ff529a667106641a36c83748610133", "sha256": "14032f81b812b7f91f33273a1d34e0764ff615f2426916f56f3ce1ce7493d863" }, "downloads": -1, "filename": "django-pgindex-0.6.0.tar.gz", "has_sig": false, "md5_digest": "a7ff529a667106641a36c83748610133", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6066, "upload_time": "2011-06-25T18:19:27", "url": "https://files.pythonhosted.org/packages/40/44/186e01de91f40d6a923196dfdeaea8d7b2598ceed950b70a1b93634b2870/django-pgindex-0.6.0.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "950d6d993e15b951d98d422e8dd21066", "sha256": "c1e2f424d110ea4927d015920d3760812cbc8a3c1e0efe59e81f4b441ef6b10a" }, "downloads": -1, "filename": "django-pgindex-0.7.0.tar.gz", "has_sig": false, "md5_digest": "950d6d993e15b951d98d422e8dd21066", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6744, "upload_time": "2011-06-30T16:06:28", "url": "https://files.pythonhosted.org/packages/0d/f7/7769e61375d5ad1cdab8fa333ada1b6d6b06dc8706ecc543e0d7825eedd8/django-pgindex-0.7.0.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "e4db0f92ccc11b0132acf7fd90e2a34b", "sha256": "acbf4c0730dce67ccf1a93a966fc20f4a19fa2d888e111b6577f0f8ba9b70394" }, "downloads": -1, "filename": "django-pgindex-0.7.1.tar.gz", "has_sig": false, "md5_digest": "e4db0f92ccc11b0132acf7fd90e2a34b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6780, "upload_time": "2011-06-30T17:48:13", "url": "https://files.pythonhosted.org/packages/3f/8a/c5497644f79099987e54ef1c8d9e43c522f73f3d7970b0cc704278826493/django-pgindex-0.7.1.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "ddca5f26579fbd0e779d73755907c612", "sha256": "7db658214e0ce25a0e2e20bdee56461fee2fac1c3e216e532e84bf0f43dd1029" }, "downloads": -1, "filename": "django-pgindex-0.8.0.tar.gz", "has_sig": false, "md5_digest": "ddca5f26579fbd0e779d73755907c612", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6820, "upload_time": "2011-08-09T15:58:15", "url": "https://files.pythonhosted.org/packages/97/da/3db9dd14023dee73b72b25d43dd28010173050463a716e0753aa1ecf381d/django-pgindex-0.8.0.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "4c3527763c4cfb07a7484290b6bb54a2", "sha256": "25d9a95cbd97bbac5e04bb34e68f8c6327e764634efe9fb040a21e76bf3c65c8" }, "downloads": -1, "filename": "django-pgindex-0.8.1.tar.gz", "has_sig": false, "md5_digest": "4c3527763c4cfb07a7484290b6bb54a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7497, "upload_time": "2011-08-10T01:41:46", "url": "https://files.pythonhosted.org/packages/55/aa/8913edff3367366e3a4467fce707e30e68064f2642cdab947110f4ea2b44/django-pgindex-0.8.1.tar.gz" } ], "0.8.2": [ { "comment_text": "", "digests": { "md5": "5f5ba7faa869d289cb2ede9f760515dc", "sha256": "77ea16c55deaf07e3ef53b8577b824b53cecd4fa90bc41dc8ac078d5faad58df" }, "downloads": -1, "filename": "django-pgindex-0.8.2.tar.gz", "has_sig": false, "md5_digest": "5f5ba7faa869d289cb2ede9f760515dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6997, "upload_time": "2014-03-20T23:39:49", "url": "https://files.pythonhosted.org/packages/9a/e0/7534fbdc6d51e6ba67026c543860e88ad88fc08017eb49d29a38563b16ee/django-pgindex-0.8.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5f5ba7faa869d289cb2ede9f760515dc", "sha256": "77ea16c55deaf07e3ef53b8577b824b53cecd4fa90bc41dc8ac078d5faad58df" }, "downloads": -1, "filename": "django-pgindex-0.8.2.tar.gz", "has_sig": false, "md5_digest": "5f5ba7faa869d289cb2ede9f760515dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6997, "upload_time": "2014-03-20T23:39:49", "url": "https://files.pythonhosted.org/packages/9a/e0/7534fbdc6d51e6ba67026c543860e88ad88fc08017eb49d29a38563b16ee/django-pgindex-0.8.2.tar.gz" } ] }