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

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

Hi Nick,

I'm not setup for a "minimal test case" at this moment, would need a little 
more time to try that (which I'd be happy to do).

Meanwhile, just looking at the text of your script, here are potential deltas I 
can see:
* I'm not setting the "truncate" flag in Indexer-new (I was however running the 
tests after doing "rm -rf" on the folders containing the indexes).
* The two entries I'm adding are a bit different, for <content, title> they're:
    "/Building.txt", "Building.txt"
    "/java txt", "java txt"
* I am committing the index after each add-doc (i.e. twice)
* For the search, I am not doing a term-query to search against a specific 
field (I believe you are searching against the title field), but rather doing 
IxSearcher-New on the index folder then IxSearcher-Hits to get the results 
(mirrors code in getting_started.c). Do I understand correctly that I am 
therefore searching all searchable fields?
* Also worth noting that the actual field I'm getting the matches for (in the 
case I don't use blob for content) is title I believe.
* I am using C rather than Perl, though hopefully that doesn't matter...

If you have a chance to try a modified version of your test script that would 
be great; otherwise I will try and replicate myself using a variant of your 
script once I'm able.

Thanks for taking a look.

> 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