Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 05B10EC7 for ; Thu, 5 May 2011 13:01:19 +0000 (UTC) Received: (qmail 26001 invoked by uid 500); 5 May 2011 13:01:15 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 25942 invoked by uid 500); 5 May 2011 13:01:15 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 25934 invoked by uid 99); 5 May 2011 13:01:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 13:01:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dawid.weiss@gmail.com designates 209.85.214.48 as permitted sender) Received: from [209.85.214.48] (HELO mail-bw0-f48.google.com) (209.85.214.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 13:01:10 +0000 Received: by bwz8 with SMTP id 8so3035038bwz.35 for ; Thu, 05 May 2011 06:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=sGeoICo3XJTN2bh3qJZ7nHrYHXL0wkynadnIzBTeNPI=; b=O5D7Q/gW4Yy2BON+nwVqAdjZy8d3pjnac8iCjSOOB/U3x3EQm31sLlbXW7BLM246K1 y8KcA8uK5Zp22tWMp+UtZBLwOuBZoGvtzMLs1KJz29hzch6G22GEVYeb4rGE3P29qm6y NkClmxS7x5BhPKYijGwophh7/XIHsjM7UI3VE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=qU3UfR67Jn+WkuYk6/bJp94QHb5sX+xSSlvIn6rUAa4d9jui1uUX/Qsxmwlq+QY+f9 h4rYymFko+0TMihg97oXLwofaKMiBdL96fCF0eD0pPd5LUECkuJ8Qz3DDaOBNI84BphQ /QFOZkaQtUPux6xTdLJ+jUOVsTmQgFsYkNA3U= Received: by 10.204.47.103 with SMTP id m39mr2279745bkf.4.1304600449118; Thu, 05 May 2011 06:00:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.5.91 with HTTP; Thu, 5 May 2011 06:00:29 -0700 (PDT) In-Reply-To: References: From: Dawid Weiss Date: Thu, 5 May 2011 15:00:29 +0200 Message-ID: Subject: Re: Using Solr's (Auto)suggest with plain lucene To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=00504502e37f57f34e04a286f696 --00504502e37f57f34e04a286f696 Content-Type: text/plain; charset=UTF-8 If you check out the source code of solr/lucene, look at FSTLookup class and FSTLookupTest -- you can populate FSTLookup manually with terms/ phrases from your index and then use the resulting automaton for suggestions. Dawid On Thu, May 5, 2011 at 2:54 PM, Clemens Wyss wrote: > I have implemented my index (in fact it's a plugable indexing API) in > "plain Lucene". It tried to implement a term suggestion mechanism on my own, > being not to happy so far. > At > http://search-lucene.com/m/0QBv41ssGlh/suggestion&subj=Auto+Suggest > I have seen Solr's auto suggestion for search terms. Appart from not being > "fuzzy" it looks quite promising. > > How easily can I Integrate Solr's suggestion with my Lucene index? > > Thx > Clemens > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --00504502e37f57f34e04a286f696--