lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-3375) processing a synonym in a token stream will remove the following token from the stream
Date Tue, 16 Aug 2011 14:47:27 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Muir updated LUCENE-3375:
--------------------------------

    Attachment: LUCENE-3375.patch

Mike's patch, but i ported the tests from the old synfilter to boost our test coverage a little
bit.

we could still cleanup and improve these tests but it makes me feel better.

> processing a synonym in a token stream will remove the following token from the stream
> --------------------------------------------------------------------------------------
>
>                 Key: LUCENE-3375
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3375
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: modules/analysis
>    Affects Versions: 3.4, 4.0
>         Environment: solr 4.0 built from trunk today
>  
>         Solr Specification Version: 4.0.0.2011.08.11.16.00.45
> 	Solr Implementation Version: 4.0-SNAPSHOT 1156711M - simon - 2011-08-11 16:00:45
> 	Lucene Specification Version: 4.0-SNAPSHOT
> 	Lucene Implementation Version: 4.0-SNAPSHOT 1156556 - simon - 2011-08-11 09:33:46
> 	Current Time: Thu Aug 11 21:27:11 EDT 2011
> 	Server Start Time:Thu Aug 11 20:59:11 EDT 2011
>            Reporter: Simon Rosenthal
>         Attachments: LUCENE-3375.patch, LUCENE-3375.patch, LUCENE-3375_test.patch, SOLR-2709_test.patch
>
>
> If you do a phrase search on a field derived from a fieldtype with the synonym filter
which includes a synonym, the term following the synonym vanishes after synonym expansion.
> e.g. http://host:port/solr/corename/select/?q=desc:%22xyzzy%20%20bbb%20pot%20of%20gold%22&version=2.2&start=0&rows=10&indent=on&debugQuery=true
  (bbb is in the default synonyms file, desc is a "text" fieldtype)
> outputs
> ....
> <str name="rawquerystring">desc:"xyzzy  bbb pot of gold"</str>
> <str name="querystring">desc:"xyzzy  bbb pot of gold"</str>
> <str name="parsedquery">PhraseQuery(desc:"xyzzy bbbb 1 bbbb 2 of gold")</str>
> <str name="parsedquery_toString">desc:"xyzzy bbbb 1 bbbb 2 of gold"</str>
> ....
> You can also see this behavior using the admin console analysis.jsp
> Solr 3.3 behaves properly.

--
This message is automatically generated by JIRA.
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