Hi Daniel,
Yes, I read about Haystack and I am implementing it with Solr and Database
I am using MySQL. While integrating it I am getting error for ManyToMany
Model field.
I am getting this error and I am not understand what is going wrong or what
to do:
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/haystack/management/commands/update_index.py",
line 210, in handle_label
self.update_backend(label, using)
File
"/usr/local/lib/python2.7/dist-packages/haystack/management/commands/update_index.py",
line 256, in update_backend
do_update(backend, index, qs, start, end, total, self.verbosity)
File
"/usr/local/lib/python2.7/dist-packages/haystack/management/commands/update_index.py",
line 78, in do_update
backend.update(index, current_qs)
File
"/usr/local/lib/python2.7/dist-packages/haystack/backends/solr_backend.py",
line 49, in update
docs.append(index.full_prepare(obj))
File "/usr/local/lib/python2.7/dist-packages/haystack/indexes.py", line
196, in full_prepare
self.prepared_data = self.prepare(obj)
File
"/home/manoj/final-s4s-project/search4school/search4schoolapp/search_indexes.py",
line 30, in prepare
data = super(CollegeIndex, self).prepare(obj)
File "/usr/local/lib/python2.7/dist-packages/haystack/indexes.py", line
187, in prepare
self.prepared_data[field.index_fieldname] = field.prepare(obj)
File "/usr/local/lib/python2.7/dist-packages/haystack/fields.py", line
152, in prepare
return self.convert(super(CharField, self).prepare(obj))
File "/usr/local/lib/python2.7/dist-packages/haystack/fields.py", line
100, in prepare
return current_object()
File
"/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related.py",
line 843, in __call__
manager = getattr(self.model, kwargs.pop('manager'))
KeyError: u'manager'
On Monday, 6 July 2015 21:36:43 UTC+5:30, daniel.franca wrote:
>
> Hi Manoj, have you tried Haystack? http://haystacksearch.org/
> It's a simple API to make a search engine using Django, and you can attach
> any of the available backends (Solr, Elasticsearch, Whoosh or Xapian).
>
> Best,
> Daniel
>
>
> Em seg, 6 de jul de 2015 às 18:01, Manoj Bawane <[email protected]
> <javascript:>> escreveu:
>
>> Hi All,
>>
>> I am planning to create a search engine for my city. Can you please
>> suggest me Which technology I should prefer? I am new with Django, before
>> that I have work with some web application using Java Spring. But now, I
>> recently working in one project where I found Django is also nice framework
>> to develop search engine sites. So Please any one suggest me,
>>
>> 1. How should I proceed to do this project using Django,
>> 2. What other technology associated with Django which helps to make
>> searching faster.
>> 3. Which Open Source database will better
>> 4. Where I can deploy my search engine, (will it need dedicated or
>> shared host server).
>>
>> Please suggest your valuable opinion.
>>
>>
>> Thanks to everyone.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/564fdc15-391d-4829-bdb2-96d189d73499%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/django-users/564fdc15-391d-4829-bdb2-96d189d73499%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/376a9618-cccd-4d2b-b170-a930cdf60b06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.