lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rio <romanirupasin...@yahoo.com>
Subject Reiterating again in the solr returned result set
Date Wed, 14 May 2014 14:10:46 GMT
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 

<field name=&quot;&lt;b>Exact_Word" omitPositions="true" termVectors="false"
omitTermFreqAndPositions="true" compressed="true" type="string_ci"
multiValued="false" indexed="true" stored="true" required="false"
omitNorms="true"/>

<fieldtype name="string_ci" class="solr.TextField" sortMissingLast="true"
omitNorms="true"><analyzer><tokenizer
class="solr.KeywordTokenizerFactory"/><filter
class="solr.LowerCaseFilterFactory"/></analyzer></fieldtype>

<field name="Word" compressed="true" type="word_text_ptn"
multiValued="false" indexed="true" stored="true" required="false"
omitNorms="true"/>

<copyField source="Word" dest="Exact_Word"/>

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.

Mime
View raw message