match - Solr returning matches on fields where Indexed="false" -
i have field defined such within schema.xml:
<field name="imagethumbnail" type="string" indexed="false" stored="true" required="false" />
i storing base64 string representation of image thumbnail inside document, our search results screen can render these thumbnails. works great; show images of people , objects in our browser client.
the problem text of base64 string searchable, though indexed="false" set in schema.xml.
i found typing automotive vehicle make short hand (vw volkswagon), , got 2 hits. not returning hit highlighting information, returns few matching records.
i went further search '4aaqskzjrgabaqeayabgaad' , got on 150 hits, again, matching string within imagethumbnail column.
what missing? if indexed="false", how can solr search , find matches on field? else shuts off searching on field if not indexed="false"?
i doing /select querying, , reference, here /select requesthandler:
<requesthandler name="/select" class="solr.searchhandler"> <lst name="defaults"> <str name="echoparams">explicit</str> <int name="rows">250</int> <str name="wt">json</str> <str name="hl">true</str> <str name="hl.fl">*</str> <str name="indent">true</str> <str name="df">text</str> </lst>
thanks thoughts/suggestions; vw (when dealing vehicles) common search term , need exclude image strings matching.
well, tokens present in string you're searching. might not searching against imagethumbnail
field (your /select output seems indicate you're querying text
field). indicates content present in text
field, because have copyfield
directive adds same content field add imagethumbnail
field.
find copyfield directives in schema see if content goes fields didn't think (wildcards might affect this). confirm you're not adding same content text field (or if you're querying field, field) when indexing (which less situation).
Comments
Post a Comment