The copyField is providing the "source" or "input" for your truncated_description field and is limiting (truncating) that text to 168 characters.

In short, a much longer input can come in, all of the keywords get indexed, but only the truncated portion of the source text is "stored".

-- Jack Krupansky

-----Original Message----- From: Spadez
Sent: Tuesday, September 18, 2012 10:33 AM
To: solr-user@lucene.apache.org
Subject: Re: Taking a full text, then truncate and duplicate with stopwords

Ok, thank you for the reply. I have one more question then I think everything
is cleared up. If I have this code:

<field>
<field name="truncated_description" type="text_general" indexed="false"
stored="true">
<field name="keyword_description" type="text_stripped" indexed="true"
stored="false">
</field>
<copyField source="keyword_description" dest="truncated_description"
maxChars="168"/>

The truncated_description is one I need to display in search results. If I
set this to stored=true as above (so it can be displayed in results), does
it mean that I am storing the original full_text input as well?



--
View this message in context: http://lucene.472066.n3.nabble.com/Taking-a-full-text-then-truncate-and-duplicate-with-stopwords-tp4008269p4008615.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to