Re: Sorting by NumericField not working

2011-03-25 Thread 石玉明
NumericField include int float double ... and so on. but your sort uses SortField.int . Maybe that is the key point. -- newbie of Lucene 2011-03-26 石玉明 发件人: Azhar Jassal 发送时间: 2011-03-25 22:23:46 收件人: java-user@lucene.apache.org 抄送: 主题: Sorting by NumericField not working Hi,

Re: Sorting by NumericField not working

2011-03-25 Thread Ian Lea
>From the javadoc for SortField: Fields must be indexed in order to sort by them. >From the javadoc for NumericField: public NumericField(String name, int precisionStep, Field.Store store, boolean index) -- Ian. P.S. Read the javadocs!

Sorting by NumericField not working

2011-03-25 Thread Azhar Jassal
Hi, I'm trying to sort results by a NumericField but the results do not sort (still appear in default score order). The NumericField was indexed using the code below: NumericField field = new NumericField(name, NumericUtils.PRECISION_STEP_DEFAULT, Field.Store.YES, false); field.setIntValue(value)

Re: Using Fuzzysearch with MultiFieldQueryParser

2011-03-25 Thread Deepak Konidena
Ian, I think you're right. Boolean query is what I am looking for. Thanks. On 3/25/11 6:04 AM, "Ian Lea" wrote: >You'd be better off building a BooleanQuery. > >BooleanQuery bq = new BooleanQuery(); >bq.add(new TermQuery(...), ...); >bq.add(new FuzzyQuery(...),. ...); >etc > >See BooleanClause

Re: Searching partial names using Lucene

2011-03-25 Thread Deepak Konidena
On 3/25/11 5:57 AM, "Ian Lea" wrote: >Have you tried stemming? Simpler and available in core lucene. Look >at PorterStemFilter or use your favourite search engine to find more >info and options. Ian, I did try PorterStemFilter and couldn't get the result I wanted. (Dan == Daniel, Will == Wil

Re: Searching partial names using Lucene

2011-03-25 Thread Deepak Konidena
Thanks for the detailed response sujit. UIMA, especially looks like an interesting option. On 3/24/11 3:57 PM, "Sujit Pal" wrote: >I don't know if there is already an analyzer available for this, but you >could use GATE or UIMA for Named Entity Extraction against names and >expand the query to

Re: using 2 different Analyzer for indexing ?

2011-03-25 Thread Ian Lea
SolrConfig? What's that? Ahh .. solr. This is the lucene user list. Please see http://lucene.apache.org/solr/mailing_lists.html#Users -- Ian. On Fri, Mar 25, 2011 at 1:44 PM, Amel Fraisse wrote: > Hi David, > > Thank you David for your response. > But given the nature of my data I prefer c

Re: using 2 different Analyzer for indexing ?

2011-03-25 Thread Amel Fraisse
Hi David, Thank you David for your response. But given the nature of my data I prefer construct 2 index. So how can I configure that in the SolrConfig? Amel. 2011/3/25 David Causse > On Fri, Mar 25, 2011 at 12:59:44PM +0100, Amel Fraisse wrote: > > Hello, > > > > I would index the same docume

Re: using 2 different Analyzer for indexing ?

2011-03-25 Thread Ian Lea
And if you want different analyzers for different fields, see PerFieldAnalyzerWrapper -- Ian. On Fri, Mar 25, 2011 at 1:31 PM, David Causse wrote: > On Fri, Mar 25, 2011 at 12:59:44PM +0100, Amel Fraisse wrote: >> Hello, >> >> I would index the same document with 2 different Analyzer. >> So I h

Re: using 2 different Analyzer for indexing ?

2011-03-25 Thread David Causse
On Fri, Mar 25, 2011 at 12:59:44PM +0100, Amel Fraisse wrote: > Hello, > > I would index the same document with 2 different Analyzer. > So I have to create 2 different index. > > How can I do that ? Hi, within the same index you can have more than one indexed field. Just add your two indexed fi

using 2 different Analyzer for indexing ?

2011-03-25 Thread Amel Fraisse
Hello, I would index the same document with 2 different Analyzer. So I have to create 2 different index. How can I do that ? thank you for your help, Amel.

Re: Grouping...

2011-03-25 Thread Ian Lea
I'm not aware of a particular FAQ on this. There is something called bobo-browse - "Faceted search library based on Lucene - Google ... Bobo Browse is an information retrieval technology that provides navigational browsing into a semi-structured dataset. Beyond the result set from queries ...".

Re: Grouping...

2011-03-25 Thread Dawn Zoë Raison
On 23/03/2011 17:55, Grant Ingersoll wrote: Have you looked at Solr and date faceting capabilities? Also, it has result grouping, but I think you are just describing faceting/filtering. SOLR is not an option, we are already have the index (>2 million pages some with 100,000 terms). What I'

Re: Using Fuzzysearch with MultiFieldQueryParser

2011-03-25 Thread Ian Lea
You'd be better off building a BooleanQuery. BooleanQuery bq = new BooleanQuery(); bq.add(new TermQuery(...), ...); bq.add(new FuzzyQuery(...),. ...); etc See BooleanClause.Occur for options on MUST, SHOULD etc. -- Ian. On Thu, Mar 24, 2011 at 5:48 PM, Deepak Konidena wrote: > Hi, > > I am us

Re: Searching partial names using Lucene

2011-03-25 Thread Ian Lea
Have you tried stemming? Simpler and available in core lucene. Look at PorterStemFilter or use your favourite search engine to find more info and options. If instead you go the synonym route, there is sample code in Lucene in Action and a wordnet contrib module you might find useful. -- Ian.

Re: Lucene index limit

2011-03-25 Thread pulkitsinghal
Hello Uwe, Thank you for the reply! With your suggestion I looked deeper into my code to find that the services handing me the data had been updated to set a limit. So it wasn't a lucene issue at all. Sent from my iPhone On Mar 24, 2011, at 6:21 PM, "Uwe Schindler" wrote: > Are you sure that