Return-Path: X-Original-To: apmail-incubator-bloodhound-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 500ACE323 for ; Tue, 19 Feb 2013 14:14:41 +0000 (UTC) Received: (qmail 44061 invoked by uid 500); 19 Feb 2013 14:14:41 -0000 Delivered-To: apmail-incubator-bloodhound-dev-archive@incubator.apache.org Received: (qmail 43991 invoked by uid 500); 19 Feb 2013 14:14:40 -0000 Mailing-List: contact bloodhound-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-dev@incubator.apache.org Received: (qmail 43962 invoked by uid 99); 19 Feb 2013 14:14:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 14:14:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.174] (HELO mail-qc0-f174.google.com) (209.85.216.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 14:14:32 +0000 Received: by mail-qc0-f174.google.com with SMTP id z24so2551721qcq.19 for ; Tue, 19 Feb 2013 06:14:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=k0QkeUmMHf2Y4WtxjL+0althzkuqnerwMVlG3Z5IBps=; b=Um7U94l7rzBg3SrjaqVIKTuSXnjh+r8Ltg0dGABS9rvmR5QL+6fk7cSf6K9c88Dn9w 14Q/5f0Em5U0mbQYiGVxCIe5t4j0O+d65gLmbuZ5IlpLGHh3AFCMGgJvUVlWBHBVoIr9 dMvamZvub5HWg1N5YmpHwv3IQkBPcykPY/YKeHgrWcjxxW5jr460z/nkYCGhBcnV/JAh fbMx0sXDntrBbR5rvI6D9ErT7j+49Z8/dMHGk9+XZ0mUaVBpI6SSDoGKLQIJnIvthhjB ZzYql/D5Pv/umdD1vi2HmAzO3SbUUXPZC9wZyRYAAq8lpPpphFntvcJmKndcqj2JK2BR MJOA== MIME-Version: 1.0 X-Received: by 10.224.76.136 with SMTP id c8mr3462844qak.93.1361283251973; Tue, 19 Feb 2013 06:14:11 -0800 (PST) Received: by 10.49.6.73 with HTTP; Tue, 19 Feb 2013 06:14:11 -0800 (PST) In-Reply-To: References: <511CF5D7.7050009@wandisco.com> <9F76E786-1D61-4471-B894-60A1E2EF5D4B@gmail.com> Date: Tue, 19 Feb 2013 15:14:11 +0100 Message-ID: Subject: Re: Need advice: stripping of wiki syntax from Bloodhound Search results From: Andrej Golcov To: bloodhound-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmwafZrqzHU5oKTypVt6Wcg1W6XQGU0TtHWHpaggTrU2n2sjS7O6Vvqr3los3YoOBJfZaXW X-Virus-Checked: Checked by ClamAV on apache.org Thanks everybody for the valuable feedback. I have played with solution based on the existing HtmlFormatter in order to get text output. Current formatter implementation is so tightly connected to the HTML markup and current user security context that it can bring us a lot of complexity and potential bugs. So, I decided proceed with very, very naive find-and-replace formatter that should cover major cases. It's definitely not perfect but can be improved later. So far, search output looks quite better to me. Please, try and comment. Regards, Andrej