mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #3254 -- Added full text search to contrib.postgres.
Adds a reasonably feature complete implementation of full text search using the built in PostgreSQL engine. It uses public APIs from Expression and Lookup. With thanks to Tim Graham, Simon Charettes, Josh Smeaton, Mikey Ariel and many others for their advice and review. Particular thanks also go to the supporters of the contrib.postgres kickstarter.
This commit is contained in:
parent
f4c2b8e04a
commit
2d877da855
16 changed files with 880 additions and 4 deletions
|
@ -9,6 +9,7 @@ try:
|
|||
ArrayField, BigIntegerRangeField, DateRangeField, DateTimeRangeField,
|
||||
FloatRangeField, HStoreField, IntegerRangeField, JSONField,
|
||||
)
|
||||
from django.contrib.postgres.search import SearchVectorField
|
||||
except ImportError:
|
||||
class DummyArrayField(models.Field):
|
||||
def __init__(self, base_field, size=None, **kwargs):
|
||||
|
@ -30,3 +31,4 @@ except ImportError:
|
|||
HStoreField = models.Field
|
||||
IntegerRangeField = models.Field
|
||||
JSONField = models.Field
|
||||
SearchVectorField = models.Field
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue