only returns '1'

Submitted by Peter_H on Sun, 2009-03-08 07:07.Troubleshooting

I'am trying to implant search suggestions to one of my input boxes. The DBSight server is not available to the outside world, so I had to write a wrapper for

It's basically a script which reads the post and get data and calls with that data. I have also tried without the wrapper, but had the same result.

The problem is that only returns '1', and I can't find what is causing this problem. I have rebuild the spellcheck index for the field that has to show the suggestions, and the files are on the server. Also is called with the correct parameters, these are indexName and q, both contain the correct data.

I really can't find what's causing this strange problem, there is not much which can go wrong...

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Submitted by will on Sun, 2009-03-08 09:29.

You can send us the index configuration downloaded from the dashboard, and the directory

 WEB-INF/data/indexes/<index name>

We can do a local debug for you.

Also, if you create partial scaffolding, the javascript included is jquery.suggest.js has wrapped the logic.

What's returned from should be just lines of words/phrases.

Submitted by Peter_H on Sun, 2009-03-08 09:43.

Thanks for your comment Will, but I've just solved the problem by restarting the DBSight server. The settings page indicates no restart is needed, but that seems incorrect...

Submitted by will on Sun, 2009-03-08 09:58.

btw: The latest beta release has some fix for phrase extraction.

Submitted by Peter_H on Mon, 2009-03-09 04:40.

Ok, I'll try that release.
The current release I use (2.0.8) seems not to support 'strange' characters. I use the autocomplete on a field which contains usernames, and some of them contain characters like : '_', usernames containing these characters are not returned.

It would also be handy if I could feed the field-name which contains the relevant data for the input-box on the page.

I have two separate fields which I like to contain a separate suggestion-index for each field. One for the titles, and one for the usernames. It's a bit confusing when the username suggestion displays data taken from the title field.

Is this also possible in the new version? If not, maybe a idea for a new feature ;)

Submitted by will on Mon, 2009-03-09 09:32.

I just put a fix for the "_", specifically. Try the updated latest beta version now.

Adding field-specific is not that simple...

Maybe for now you can create another small index for usernames, and use it to get suggestions.