lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3674) PathHierarchyTokenizerFactory needs better docs, tests, and example config
Date Wed, 25 Jul 2012 02:35:35 GMT

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

Hoss Man commented on SOLR-3674:
--------------------------------

Fix is to use a "query" analyzer that uses KeywordTokenizerFactory, or use the {{"\{!term\}"}}
QParser

I'll add some tests demonstrating usecase and update javadocs and example.
                
> PathHierarchyTokenizerFactory needs better docs, tests, and example config
> --------------------------------------------------------------------------
>
>                 Key: SOLR-3674
>                 URL: https://issues.apache.org/jira/browse/SOLR-3674
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 3.1, 4.0-ALPHA
>            Reporter: Hoss Man
>            Assignee: Hoss Man
>             Fix For: 4.0
>
>
> As noted by Alok Bhandari on the solr-user mailing list, the example configuration of
PathHierarchyTokenizerFactory (in both the example schema.xml and in the factory javadocs)
is not very useful to most people because it uses the tokenizer both at index and at query
time.
> So a query like {{q=text_path_field:"/aaa/bbb/ccc"}} will not only match "/aaa/bbb/ccc"
and "/aaa/bbb/ccc/ddd" but also "/aaa/" and "/aaa/xxxx" which is not likely what people expect.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message