annotate weblinks/fixtures/weblinks_categories.json @ 943:cf9918328c64
Haystack tweaks for Django 1.7.7.
I had to upgrade to Haystack 2.3.1 to get it to work with Django
1.7.7. I also had to update the Xapian backend. But I ran into
problems.
On my laptop anyway (Ubuntu 14.0.4), xapian gets mad when search terms
are greater than 245 chars (or something) when indexing. So I created
a custom field that would simply omit terms greater than 64 chars and
used this field everywhere I previously used a CharField.
Secondly, the custom search form was broken now. Something changed in
the Xapian backend and exact searches stopped working. Fortunately the
auto_query (which I was using originally and broke during an upgrade)
started working again. So I cut the search form back over to doing an
auto_query. I kept the form the same (3 fields) because I didn't want
to change the form and I think it's better that way.
author |
Brian Neal <bgneal@gmail.com> |
date |
Wed, 13 May 2015 20:25:07 -0500 |
parents |
ee87ea74d46b |
children |
|
rev |
line source |
bgneal@236
|
1 [
|
bgneal@236
|
2 {
|
bgneal@242
|
3 "pk": 1,
|
bgneal@242
|
4 "model": "weblinks.category",
|
bgneal@236
|
5 "fields": {
|
bgneal@242
|
6 "count": 215,
|
bgneal@242
|
7 "description": "",
|
bgneal@242
|
8 "slug": "bands",
|
bgneal@236
|
9 "title": "Bands"
|
bgneal@236
|
10 }
|
bgneal@242
|
11 },
|
bgneal@236
|
12 {
|
bgneal@242
|
13 "pk": 5,
|
bgneal@242
|
14 "model": "weblinks.category",
|
bgneal@236
|
15 "fields": {
|
bgneal@242
|
16 "count": 21,
|
bgneal@242
|
17 "description": "",
|
bgneal@242
|
18 "slug": "fan-sites",
|
bgneal@236
|
19 "title": "Fan Sites"
|
bgneal@236
|
20 }
|
bgneal@242
|
21 },
|
bgneal@236
|
22 {
|
bgneal@242
|
23 "pk": 4,
|
bgneal@242
|
24 "model": "weblinks.category",
|
bgneal@236
|
25 "fields": {
|
bgneal@242
|
26 "count": 28,
|
bgneal@242
|
27 "description": "",
|
bgneal@242
|
28 "slug": "gear",
|
bgneal@236
|
29 "title": "Gear"
|
bgneal@236
|
30 }
|
bgneal@242
|
31 },
|
bgneal@236
|
32 {
|
bgneal@242
|
33 "pk": 2,
|
bgneal@242
|
34 "model": "weblinks.category",
|
bgneal@236
|
35 "fields": {
|
bgneal@242
|
36 "count": 7,
|
bgneal@242
|
37 "description": "",
|
bgneal@242
|
38 "slug": "music-merchants",
|
bgneal@236
|
39 "title": "Music Merchants"
|
bgneal@236
|
40 }
|
bgneal@242
|
41 },
|
bgneal@236
|
42 {
|
bgneal@242
|
43 "pk": 8,
|
bgneal@242
|
44 "model": "weblinks.category",
|
bgneal@236
|
45 "fields": {
|
bgneal@242
|
46 "count": 6,
|
bgneal@242
|
47 "description": "",
|
bgneal@242
|
48 "slug": "other",
|
bgneal@236
|
49 "title": "Other"
|
bgneal@236
|
50 }
|
bgneal@242
|
51 },
|
bgneal@236
|
52 {
|
bgneal@242
|
53 "pk": 11,
|
bgneal@242
|
54 "model": "weblinks.category",
|
bgneal@236
|
55 "fields": {
|
bgneal@242
|
56 "count": 17,
|
bgneal@242
|
57 "description": "Do you have a photo gallery of surf bands somewhere on the web? Why not add a link to it here?",
|
bgneal@242
|
58 "slug": "photo-galleries",
|
bgneal@236
|
59 "title": "Photo Galleries"
|
bgneal@236
|
60 }
|
bgneal@242
|
61 },
|
bgneal@236
|
62 {
|
bgneal@242
|
63 "pk": 10,
|
bgneal@242
|
64 "model": "weblinks.category",
|
bgneal@236
|
65 "fields": {
|
bgneal@242
|
66 "count": 4,
|
bgneal@242
|
67 "description": "",
|
bgneal@242
|
68 "slug": "podcasts",
|
bgneal@236
|
69 "title": "Podcasts"
|
bgneal@236
|
70 }
|
bgneal@242
|
71 },
|
bgneal@236
|
72 {
|
bgneal@242
|
73 "pk": 6,
|
bgneal@242
|
74 "model": "weblinks.category",
|
bgneal@236
|
75 "fields": {
|
bgneal@242
|
76 "count": 8,
|
bgneal@242
|
77 "description": "",
|
bgneal@242
|
78 "slug": "radio",
|
bgneal@236
|
79 "title": "Radio"
|
bgneal@236
|
80 }
|
bgneal@242
|
81 },
|
bgneal@236
|
82 {
|
bgneal@242
|
83 "pk": 3,
|
bgneal@242
|
84 "model": "weblinks.category",
|
bgneal@236
|
85 "fields": {
|
bgneal@242
|
86 "count": 13,
|
bgneal@242
|
87 "description": "",
|
bgneal@242
|
88 "slug": "record-labels",
|
bgneal@236
|
89 "title": "Record Labels"
|
bgneal@236
|
90 }
|
bgneal@242
|
91 },
|
bgneal@236
|
92 {
|
bgneal@242
|
93 "pk": 7,
|
bgneal@242
|
94 "model": "weblinks.category",
|
bgneal@236
|
95 "fields": {
|
bgneal@242
|
96 "count": 4,
|
bgneal@242
|
97 "description": "",
|
bgneal@242
|
98 "slug": "tablature",
|
bgneal@236
|
99 "title": "Tablature"
|
bgneal@236
|
100 }
|
bgneal@242
|
101 },
|
bgneal@236
|
102 {
|
bgneal@242
|
103 "pk": 9,
|
bgneal@242
|
104 "model": "weblinks.category",
|
bgneal@236
|
105 "fields": {
|
bgneal@242
|
106 "count": 31,
|
bgneal@242
|
107 "description": "Links to surf videos on the web",
|
bgneal@242
|
108 "slug": "videos",
|
bgneal@236
|
109 "title": "Videos"
|
bgneal@236
|
110 }
|
bgneal@236
|
111 }
|
bgneal@242
|
112 ] |