simple-dictionary | English-English dictionary made with Django | Dictionary library
kandi X-RAY | simple-dictionary Summary
kandi X-RAY | simple-dictionary Summary
English-English dictionary made with Django.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get the list of words .
simple-dictionary Key Features
simple-dictionary Examples and Code Snippets
Community Discussions
Trending Discussions on simple-dictionary
QUESTION
In our project we use full-text search feature of PostgreSQL for different languages (English, German, Greek, Ukrainian, etc) using simple
dictionary. On my local machine (macOS Mojave) I have PostgreSQL installed using Homebrew. After trying to upgrade PostgreSQL from version 9.5.23 to 11.10 (basically I just removed old version and installed it anew) I noticed that when I try to use to_tsvector
function to convert my text to tsvector
data type it stopped lower-casing the text when using non-Latin languages. It still lower-cases the text producing lower-cased lexemes if it's Latin-based (ASCII). The problem only appeared though after I had upgraded to version 11 (it still worked as expected after I had transitionally upgraded from 9.5.23 to 10.15).
Examples (on versions 11.10, 12.5, 13.1):
...ANSWER
Answered 2020-Nov-25 at 14:24Okay, thanks to the comment of @jjanes I got it (thank you!).
The problem happened to be in the set up of Homebrew postgresql formulae. Basically, when I was installing postgresql@9.5 it was running initdb /usr/local/var/postgresql@9.5
under the hood to initialize the cluster but when I switched to 11.10 it was running initdb --locale=C -E UTF-8 /usr/local/var/postgresql@10
setting C
as a default locale and I didn't notice it.
To fix this I removed the initial data by rm -rf /usr/local/var/postgresql@12
and then re-initialized it manually with initdb --locale=en_US.UTF-8 -E UTF-8 /usr/local/var/postgresql@12
. Now the default collate for all databases is en_US.UTF-8 and everything works exactly as before.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install simple-dictionary
You can use simple-dictionary like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page