Login

oracle 10g fulltext search & patch nclob field limitations

Author:
ageldama
Posted:
April 5, 2008
Language:
Python
Version:
.96
Tags:
oracle backend patch db-api search database full text contains 10g full-text-search
Score:
0 (after 0 ratings)

save as some module, import then, call 'patch()' in somewhere suchs urls.py...

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
def fulltext_search_sql(self, field_name):
    return ("CONTAINS(%s, %%s) > 0" % field_name)

def field_cast_sql(self, db_type):
    return "%s"


def patch():
    """call me, call me"""
    from django.db.backends.oracle.base import DatabaseOperations
    DatabaseOperations.fulltext_search_sql = fulltext_search_sql
    DatabaseOperations.field_cast_sql = field_cast_sql

More like this

  1. Full-Text Searchable Models by dcwatson 6 years, 4 months ago
  2. Sphinx Search ORM / Revised by ludo 7 years, 11 months ago
  3. Sphinx Search ORM by zeeg 8 years, 1 month ago
  4. Highlight matched search term by doniyor 1 year, 1 month ago
  5. PostgreSQL fulltext with language translations by diverman 4 years, 10 months ago

Comments

ikelly (on April 7, 2008):

Note that this breaks the "History" links in the admin app, resulting in an ORA-00932 error when you try to click on them.

#

ageldama (on May 7, 2008):

thanks, I'll fix it.

#

Please login first before commenting.