Re: Simple search question

2010-11-02 Thread darren
Couldn't one write a custom filter that modified the inbound term semantics before doing the search? Then, wildcard behavior can be added to terms without doing query string splicing. > You might take a look at Ngrams. These can be used to find partial > matches without resorting to wildcards, alt

Re: Simple search question

2010-11-02 Thread Erick Erickson
You might take a look at Ngrams. These can be used to find partial matches without resorting to wildcards, although they may add to your index size... Best Erick On Tue, Nov 2, 2010 at 10:39 AM, Dirk Reske wrote: > No, we don't want to user to write the * itself. > And seperate fields for the f

Re: Simple search question

2010-11-02 Thread Ian Lea
Tokenizing and then passing through the query parser sounds reasonable to me. You could build the query yourself, but that will be a bit more work. You could also combine a non-wildcard search with a wildcard search, boosting the first one. So that "John Doe" would score higher than "Johnny Donc

Re: Simple search question

2010-11-02 Thread findbestopensource
In this case also, You may need to index the fields separately. This will give better control. Have a parser, which splits the terms and applies * to the end. Search using the terms. Regards Aditya www.findbestopensource.com On Tue, Nov 2, 2010 at 8:09 PM, Dirk Reske wrote: > No, we don't want

Re: Simple search question

2010-11-02 Thread Dirk Reske
No, we don't want to user to write the * itself. And seperate fields for the first and the last name are also not acceptable. 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 use

Re: Simple search question

2010-11-02 Thread findbestopensource
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 www.findbestopensource.com On Tue, Nov 2, 2010 at 7:44 P

Simple search question

2010-11-02 Thread Dirk Reske
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

Re: Lucene search question

2009-01-19 Thread Anshum
t > tell me 'no hits'. > > Please let me know this for each of the queries above! > > Thanks! > -- > View this message in context: > http://www.nabble.com/Lucene-search-question-tp21537515p21537515.html > Sent from the Lucene - Java Users mailing list archive at N

Lucene search question

2009-01-18 Thread fell
result or would it tell me 'no hits'. Please let me know this for each of the queries above! Thanks! -- View this message in context: http://www.nabble.com/Lucene-search-question-tp21537515p21537515.html Sent from the Lucene - Java Users mailing list archive at

Re: Search question (newbie)

2008-07-04 Thread Chris Hostetter
: How can I trap this situation correctly? I receive user queries like this : (quotes included): : :/from:"fred flintston*"/ : : Which produces a query string of : :/+from:fred body:flintston/ (where /body/ is the default field) either you've left something out, or some aspect

RE: Search question (newbie)

2008-07-04 Thread John Griffin
cene.apache.org Subject: Re: Search question (newbie) John, Thanks, I think I'm getting this now So you created your own BooleanQuery and parsed the string yourself, adding strings as TermQuerys etc., rather than using a QueryParser ? Cheers, - Chris John Griffin wrote: > Chris

Re: Search question (newbie)

2008-07-04 Thread Chris Bamford
oleanQuery API docs). Use the toString() method on the BooleanQuery after it's created to make sure you did it correctly. John G. -Original Message- From: Chris Bamford [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2008 7:39 AM To: java-user@lucene.apache.org Subject:

RE: Search question (newbie)

2008-07-03 Thread John Griffin
2008 7:39 AM To: java-user@lucene.apache.org Subject: Search question (newbie) Hi, Can someone point me in the right direction please? How can I trap this situation correctly? I receive user queries like this (quotes included): /from:"fred flintston*"/ Which produc

Search question (newbie)

2008-07-03 Thread Chris Bamford
Hi, Can someone point me in the right direction please? How can I trap this situation correctly? I receive user queries like this (quotes included): /from:"fred flintston*"/ Which produces a query string of /+from:fred body:flintston/ (where /body/ is the default field) What I

Re: Lucene search question

2007-11-13 Thread Grant Ingersoll
On Nov 13, 2007, at 11:59 AM, Steven D. Majewski wrote: Lucene is great at finding documents, but not quite as good at finding things IN documents. The index contains pointers to the terms, but they are pointers to a token in the parsed token stream, so to find a character index into a file

Re: Lucene search question

2007-11-13 Thread Steven D. Majewski
On Nov 13, 2007, at 7:21 AM, Cláudio Fernandes wrote: Hello all, I don't know if this is a somehow naive question, but here we go: Does Lucene support index by sections? Like having a text document with three sections divided by XML tags indexed in a way we could do a search by work and s

Re: Lucene search question

2007-11-13 Thread Erick Erickson
If you only have a maximum of a few sections, then indexing as different fields should work fine. If you have a big upper limit you might need to do something like index all the data in one field with a special marker (e.g. $$$) between sections, then use termdocs/termenum on the result set to

Re: Lucene search question

2007-11-13 Thread Cláudio Fernandes
Hi, On Tue, 2007-11-13 at 07:32 -0500, Grant Ingersoll wrote: > Yes, your application can do this using Lucene. Lucene is a low level > search enabling library, it is up to your application to give meaning > to what you put in it. > > One way doing what you want is to give each section its o

Re: Lucene search question

2007-11-13 Thread Grant Ingersoll
Yes, your application can do this using Lucene. Lucene is a low level search enabling library, it is up to your application to give meaning to what you put in it. One way doing what you want is to give each section its own Field for any given document. Cheers, Grant On Nov 13, 2007, at 7

RE: Lucene search question

2007-11-13 Thread Chhabra, Kapil
x/lucene-java-user/200605.mbox/[EMAIL PROTECTED] Regards, kapilChhabra -Original Message- From: Cláudio Fernandes [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 13, 2007 5:52 PM To: java-user@lucene.apache.org Cc: cff Subject: Lucene search question Hello all, I don't know if th

Lucene search question

2007-11-13 Thread Cláudio Fernandes
Hello all, I don't know if this is a somehow naive question, but here we go: Does Lucene support index by sections? Like having a text document with three sections divided by XML tags indexed in a way we could do a search by work and section. Does Lucene itself support this kind of indexing or s

Re: Search Question

2007-03-20 Thread Erick Erickson
I'm betting you can make SpanNearQuery work for you. In the simple case it's a bunch of SpanQuerys (which in its simplest form is just a Span version of TermQuery). The two other parameters are slop (See Lucene In Action for an explanation of this) and whether the terms must appear in the order th

Search Question

2007-03-20 Thread Santa Clause
Hello all, I have a how-to question. I have a field with these tokens in it (a b c f b g a) and I am searching on it with these tokens (a f e g a). So far this is easy I just set up a BooleanQuery with a bunch of optional TermQueries and get hits on (a f g a) but not (e) which is close to what

Re: newbie lucene indexing/search question

2006-12-29 Thread Erick Erickson
paragraph:"learn guitar"]. Will this query return a hit? Thanks in advance! -los -- View this message in context: http://www.nabble.com/newbie-lucene-indexing-search-question-tf2892417.html#a8080965 Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

newbie lucene indexing/search question

2006-12-28 Thread moraleslos
s and then have a lucene query that looks like this: [book:Guitar paragraph:"learn guitar"]. Will this query return a hit? Thanks in advance! -los -- View this message in context: http://www.nabble.com/newbie-lucene-indexing-search-question-tf2892417.html#a8080965 Sent from the Lucene

Re: Newbie Search Question

2006-11-26 Thread sirakov
ut this argument, i become an error message. I'll try to found a solution for the problem, but if you have any tips for me - please let me know :) thanks in advance, sirakov -- View this message in context: http://www.nabble.com/Newbie-Search-Question-tf2667479.html#a7555948 Sent from the Luc

Re: Newbie Search Question

2006-11-24 Thread Erick Erickson
!= null) { System.out.println(" Title: " + doc.get("title")); } } else { System.out.println((i+1) + ". " + "No path for this document"); } } The bolded text was added by me. I hope, i have

Re: Newbie Search Question

2006-11-23 Thread sirakov
.out.println(" Title: " + doc.get("title")); } } else { System.out.println((i+1) + ". " + "No path for this document"); } } The bolded text was added by me. I h

Re: Newbie Search Question

2006-11-23 Thread Erick Erickson
analyzer.tokenStream (field, new string reader (text)); The variable "text" is a "null". my question is: should I index the files differently or should I use some parameters? -- View this message in context: http://www.nabble.com/Newbie-Search-Question-tf2667479.html#a7506220 Sent

Re: Newbie Search Question

2006-11-23 Thread sirakov
message in context: http://www.nabble.com/Newbie-Search-Question-tf2667479.html#a7506220 Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Special characher & ; : % index/search question

2006-07-24 Thread Herbert Wu
Subject: Re: Special characher & ; : % index/search question hi herbert, >> WhitespaceAnalyzer looks brutal. Is it possible that I keep >> StandardAnalyzer and at the same time to tell the parser to keep a >> list of chars during indexing? Perhaps it would be

Re: Special characher & ; : % index/search question

2006-07-24 Thread Martin Braun
hi herbert, >> WhitespaceAnalyzer looks brutal. Is it possible that I keep >> StandardAnalyzer and at the same time to tell the parser to keep a >> list of chars during indexing? Perhaps it would be sufficient to use the WhitespaceAnalyzer and keep StandardAnalyzer for the other fields by using a

RE: Special characher & ; : % index/search question

2006-07-23 Thread karl wettin
On Sun, 2006-07-23 at 21:24 -0500, Herbert Wu wrote: > WhitespaceAnalyzer looks brutal. Is it possible that I keep > StandardAnalyzer and at the same time to tell the parser to keep a > list of chars during indexing? Add something like: | < #MYCHARACTERS: ("&" | ":" | "%" | ";") > to t

RE: Special characher & ; : % index/search question

2006-07-23 Thread Herbert Wu
@lucene.apache.org Subject: Re: Special characher & ; : % index/search question the WhitespaceAnalyzer breaks up streams on whitespace, and will give you these characters as tokens. Be careful to use it for indexing AND searching. Also, make sure that's the analyzer in Luke if you submit que

Re: Special characher & ; : % index/search question

2006-07-23 Thread Erick Erickson
the WhitespaceAnalyzer breaks up streams on whitespace, and will give you these characters as tokens. Be careful to use it for indexing AND searching. Also, make sure that's the analyzer in Luke if you submit queries that way (it's a drop-down on the search page, upper right as I remember). On 7/

Re: Special characher & ; : % index/search question

2006-07-22 Thread Yiren Luo
I think org.apache.lucene.analysis.WhitespaceAnalyzer would do it. --- Herbert Wu <[EMAIL PROTECTED]> wrote: > Hi, all, > > My document's title field contains standalone(not > contained inside a word) > special char such as &,:,%,; etc. With luke0.6 tool, > I found that these > chars are not ind

Special characher & ; : % index/search question

2006-07-22 Thread Herbert Wu
Hi, all, My document's title field contains standalone(not contained inside a word) special char such as &,:,%,; etc. With luke0.6 tool, I found that these chars are not indexed in the title field or any other place and hence not searchable. Is there any way to index these special chars for search

RE: Simple Search Question.

2005-03-14 Thread Kyong Kwak
Thanks, works like a charm. -Original Message- From: Paul Elschot [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 11:05 AM To: java-user@lucene.apache.org Subject: Re: Simple Search Question. On Monday 14 March 2005 19:59, Kyong Kwak wrote: > > I looked and didn't fi

Re: Simple Search Question.

2005-03-14 Thread Otis Gospodnetic
This will help: http://lucene.apache.org/java/docs/api/org/apache/lucene/index/TermEnum.html Otis --- Kyong Kwak <[EMAIL PROTECTED]> wrote: > > I looked and didn't find anything and wanted to know what the best > way > might be for getting a unique list of values in a given field? > so if I hav

Re: Simple Search Question.

2005-03-14 Thread Paul Elschot
On Monday 14 March 2005 19:59, Kyong Kwak wrote: > > I looked and didn't find anything and wanted to know what the best way > might be for getting a unique list of values in a given field? > so if I have a field named "category" ( it's a keyword ) and I wanted to > get all the unique values for th

Simple Search Question.

2005-03-14 Thread Kyong Kwak
I looked and didn't find anything and wanted to know what the best way might be for getting a unique list of values in a given field? so if I have a field named "category" ( it's a keyword ) and I wanted to get all the unique values for that, how would I go about it? thanks!