Difference between search strings

2014-05-15 Thread rio
Can someone please tell me the difference between searching a text in the
following ways

1. q=Exact_Word:"samplestring" -> What does it tell to solr  ?

2. q=samplestring&qf=Exact_Word -> What does it tell to solr  ?

3. q="samplestring"&qf=Exact_Word -> What does it tell to solr  ?
 
I think the first and the third one are the same.  is it correct ? How does
it differ from the second one.

I am trying to understand how enclosing the full term in "" is resolving the
solr specific special character problem? What does it tell to solr  ? e.g If
there is "!" mark in the string solr will identify it as a NOT, "!" is part
of the string. This issue can be corrected if the full string is enclosed in
a "".





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Difference-between-search-strings-tp4135576.html
Sent from the Solr - User mailing list archive at Nabble.com.


Reiterating again in the solr returned result set

2014-05-15 Thread rio
Hi All

I am given a requirement to check whether the user entered word is already
entered by some other user. It has been suggested to do a solr search for
this. Following is the schema for the word field type 

Exact_Word" omitPositions="true" termVectors="false"
omitTermFreqAndPositions="true" compressed="true" type="string_ci"
multiValued="false" indexed="true" stored="true" required="false"
omitNorms="true"/>







As this should be a "exact" search not a "contains" search above solr schema
is presented and the text search will happen on the Exact_Word field. 

my search string would be somthing like below

q="SampleString"&qf=Exact_Word&defType=edisMax&fl=Word

Once the search happens it will return list of documents which has the
entered string in the WORD field. Right now I am taking a count of this and
if it is more than 0 I assume that the string is presented. Can I depend on
this search result or do I need to re iterate in the solr returned result
set and again search for the result.

Please advice 












--
View this message in context: 
http://lucene.472066.n3.nabble.com/Reiterating-again-in-the-solr-returned-result-set-tp4135579.html
Sent from the Solr - User mailing list archive at Nabble.com.