[
https://issues.apache.org/jira/browse/ROL-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Glen Mazza closed ROL-1160.
---------------------------
Resolution: Won't Fix
Contradicts ROL-1846 which suggests making it a keyword is better.
> Search was returning no results as handle field not tokenised
> -------------------------------------------------------------
>
> Key: ROL-1160
> URL: https://issues.apache.org/jira/browse/ROL-1160
> Project: Apache Roller
> Issue Type: Bug
> Components: Search
> Affects Versions: 2.3
> Environment: Tomcat 5.5.16, Windows XP SP2
> Reporter: Robin Bramley
> Assignee: Roller Unassigned
> Attachments: ASF.LICENSE.NOT.GRANTED--IndexOperation.java.rol1160.diff
>
>
> Added in a debug to SearchOperation to print out the Lucene query:
> +(+(content:ipsum title:ipsum comment:ipsum cat:ipsum) +handle:test)
> +cat:general
> Tested it in Luke (http://www.getopt.org/luke/) using the StandardAnalyzer ->
> 0 results
> Examined the documents and discovered handle wasn't tokenised
> Changing handle from a Field.Keyword to Field.Text to make it tokenised (and
> rebuilding indices) solved the issue.
> Line 114 in IndexOperation.java becomes:
> doc.add(Field.Text(FieldConstants.WEBSITE_HANDLE,
> data.getWebsite().getHandle()));
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)