satyaveerendra / djangosearch

Automatically exported from code.google.com/p/djangosearch
0 stars 0 forks source link

TypeError: __init__() got an unexpected keyword argument 'text' #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Adding   index = djangosearch.ModelIndex(text=['field1'], 
additional=['field2', 'field3']) to 
any model
2. Running the development server or syncdb

What is the expected output? What do you see instead?
I'm following the instructions at: 
http://code.google.com/p/djangosearch/source/browse/branches/soc-new-
backends/doc/README.txt?r=18.  I would expect it to at least run without 
errors, but I get the 
same error every time: TypeError: __init__() got an unexpected keyword argument 
'text'.  If I 
remove both 'text=' and 'additional=' I get the following error: 
"ImproperlyConfigured: You must 
define the SEARCH_ENGINE setting before using the search framework." However, I 
just want to 
use MySQL for searching, and not one of the extra backends, so I'm not sure 
what to put here.  
The documentation is not very clear.

What version of the product are you using? On what operating system?
I'm using r19 on leopard using the django development server

Please provide any additional information below.
I'm using MySQL as my db, and I don't need any of the extra search backends.  

Original issue reported on code.google.com by michaelg...@gmail.com on 3 Oct 2008 at 11:16

GoogleCodeExporter commented 8 years ago
It looks like you're using the trunk version. Try using 
branches/soc-new-backends/ instead.

I warn you though, there are a number of bugs and the API is about to change 
drastically. In other words, stick 
with the revision you're using unless you want to be updating your code all the 
time.

Original comment by ben.firs...@gmail.com on 5 Oct 2008 at 7:42

GoogleCodeExporter commented 8 years ago
I realized late last night that I was using the wrong version like you said.  
The only problem is that I want a 
search that can work with mysql, but the trunk version doesn't have that as a 
backend.  Will the mysql file from 
soc-new-backends work with trunk?

Original comment by michaelg...@gmail.com on 5 Oct 2008 at 8:26