Mike,
It will come with Solr 1.4, but if you visit SOLR-538, you can get a patch
for Solr 1.3 branch. I'm using the patch with Solr 1.3 on my production
site and works well so far.
https://issues.apache.org/jira/browse/SOLR-538
Note: you should use "maxLength" attribute instead of "maxChars" when
using the patch.
Koji
Mike Topper wrote:
Cool, we are actually still on 1.2 but were planning on upgrading to 1.3
is this a feature of 1.3 or just on the nightly builds?
-Mike
Koji Sekiguchi wrote:
Mike Topper wrote:
Hello,
In one of the fields in my schema I am sending somewhat large texts. I
want to be able to index all of it since I want to search on the entire
text, but I only need the first N characters to be returned to me. Is
there a way to do this with one field or would I just create two fields,
one that is indexed and not stored and one that is stored and not
indexed and only send the first N characters to the stored field?
-Mike
If you are using a nigtly version, you can use maxChars attribute of
copyField feature
to implement your idea:
<copyField source="indexedNotStored" dest="storedNotIndexed"
maxChars="2000" />
Koji