lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Reske <>
Subject Re: Simple search question
Date Tue, 02 Nov 2010 14:39:52 GMT
No, we don't want to user to write the * itself.
And seperate fields for the first and the last name are also not

Image all the social networks, where you type a part of a name into the
textbox, and get all people whose names (first or last) contains one of
your searched words. The user should not be thinking about...just doing


On Tue, 2 Nov 2010 20:00:08 +0530, findbestopensource
<> wrote:
> Yes. Correct. It would be good, If User inputs the search string with *.
> My Idea is to index two fields separately first name and last name. Provide
> two text boxes with first name and last name. Leave the rest to the User.
> Regrads
> Aditya
> On Tue, Nov 2, 2010 at 7:44 PM, Dirk Reske <> wrote:
>> Hello,
>> we are quite new to lucene.
>> At first we want to create a simple user search for our web application.
>> My first thought was to map die 'display name' (= firstname + lastname) to
>> a single field (analysed but not stored)
>> and to put the database id of the user to a stored, not analysed field (but
>> indexed).
>> Then the user should have a simple text box, where he should be able to
>> write the whole name, parts of the name etc...
>> So a search for "jo do" should also return the user "John Doe". How to
>> create the query?
>> My first solution was to tokenize the string using whitespaces an add an *
>> to each word and then concatenate all the words and use the query parser,
>> so that the search string would be "jo* do*"...but then I've read, that I
>> should not programmaticly construct a string and use the queryparser.
>> So what is the right way?
>> Greets
>> Dirk
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

Dirk Reske
Vogelsangstr. 24
18437 Stralsund

mobile: +(49) 1522 2104741

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message