iamshah99 / sphinxsearch

Automatically exported from code.google.com/p/sphinxsearch
GNU General Public License v2.0
1 stars 0 forks source link

Every time search for a keyword i get no result, however matching keywords are there and if run the search command on command line it shows me error --> index 'test1': search error: . #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am using test.php api of sphinx
2. When i search for any keyword it gives me no result. 
3. Same thing i did with command "search test" in command line it shows me error
" index 'test1': search error: ."
If i run the same command like this 'search -q test', it give me the desired 
output. But not able to get the result in PHP API.

What is the expected output? What do you see instead?
Expected out put should be result array. But i get the below mentioned.
Array
(
    [error] => 
    [warning] => 
    [status] => 0
    [fields] => Array
        (
            [0] => title
            [1] => module_name
            [2] => search_content
        )

    [attrs] => Array
        (
            [sample_id] => 1
            [title] => 7
            [module_name] => 7
            [search_content] => 7
            [client_id] => 1
            [date_added_ts] => 1
            [date_modified_ts] => 1
            [date_published_ts] => 1
        )

    [total] => 0
    [total_found] => 0
    [time] => 0.000
    [words] => Array
        (
            [5] => Array
                (
                    [docs] => 3
                    [hits] => 3
                )

            [test] => Array
                (
                    [docs] => 20
                    [hits] => 49
                )

        )

)

What version of the product are you using? On what operating system?
I am using Sphinx 2.0.4-release (r3135) and Ubuntu 12.04 LTS

Please provide any additional information below.

Original issue reported on code.google.com by keenr...@gmail.com on 29 May 2014 at 11:51