[ 
https://issues.apache.org/jira/browse/LUCY-299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15244014#comment-15244014
 ] 

DGB commented on LUCY-299:
--------------------------

My apologies - this was my issue, not Lucy, as I established creating a test 
scenario.

In changing the field type from "full-text-type" to "blob-type", I should also 
have changed the value type from String to ByteBuf - but I hadn't done that. As 
it turns out, full-text-type fields require String values while blob-type 
fields require ByteBuf (raw byte array) values.

Lucy was generating an error msg which was being captured to my log file, but 
which sadly I missed.

If you wanted to protect users (like me) from themselves a little here, Lucy 
(at Doc_Store) could convert blob-type value fields from String to ByteBuf in 
the case a String was passed in (it would just need to test on the class of the 
passed value). It seems reasonable enough to pass a string as a "blob" value in 
the event we don't want the string to be searchable, but do want it to be 
retrievable, if I understand the intent of blob-type correctly.

But in any case - my bad - sorry for the thrashing.

> Using Blob field type stops search working on other fields
> ----------------------------------------------------------
>
>                 Key: LUCY-299
>                 URL: https://issues.apache.org/jira/browse/LUCY-299
>             Project: Lucy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.4.4
>         Environment: Ubuntu 15.10
>            Reporter: DGB
>              Labels: github-import, newbie
>
> Running into an apparent issue using BlobType_new to create FieldType.
> Scenario:
> Creating a schema with two fields, "fullpath" and "title". Using EasyAnalyzer.
> Add a couple of entries to the index
> Issued a search against the index
> Problem: If for fullpath field I use BlobType_new for FieldType, no search 
> match is found. However, if I use either FullTextType_new or StringType_new 
> for the schema FieldType of fullpath, it works fine.
> If I do not add fullpath at all, not to schema nor of course with Doc_Store - 
> i.e. just have a single field of title - my scenario works fine (get a search 
> hit). 
> If I add fullpath to the schema, but not to the doc entries (via Doc_Store), 
> it works fine (get a search hit).
> It makes no difference (still get no match) if add fullpath before or after 
> title.
> It makes no difference (still get no match) whether I pass true or false as 
> parm to BlobType_new.
> In all cases, FieldType for title is fulltext; and it is title that is 
> generating the matches against the search query.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to