lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rio <>
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"

<fieldtype name="string_ci" class="solr.TextField" sortMissingLast="true"

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

<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


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:
Sent from the Solr - User mailing list archive at

View raw message