Problem with making Solr query

2011-08-05 Thread dhryvastov
Hi -

I am new to Solr and Lucene and I have started to research its capabilities
this week. My current task seems very simple (and I believe it is) but I
have some issue.

I have successfully done indexing of MSSQL database table. The table has
probably 20 fields and I have indexed two of them: id and title.
The question is: how can I get all records from this table (I mean the id's
of them) were the word specifies in search appears???

I send the following get request to get result:
http://localhost:8983/solr/db/select/?q=implementation. The response
contains 0 results (numFound="0") but there are at least 5 records among the
first 10 which contains this word in its title.

My schema.xml contains:
 


 

What get request should I do to get the expected results?

I feel that I have omitted something simple but it is the second day that I
can't found what.
Please help.

Thanks for your response.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-with-making-Solr-query-tp3228877p3228877.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Problem with making Solr query

2011-08-05 Thread dhryvastov
One more note:
If I send the following url http://localhost:8983/solr/db/select/?q=*:* then
I see the first 10 records and  numFound="26" as expected.

Tried to do the same using Java API, the results is identical...

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-with-making-Solr-query-tp3228877p3228885.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Problem with making Solr query

2011-08-05 Thread dhryvastov
Thank you Bill and Ludovic!

I changed field type to text instead of string and now it is working
perfectly!

Thank you very much for such a quick help!!!

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-with-making-Solr-query-tp3228877p3228941.html
Sent from the Solr - User mailing list archive at Nabble.com.