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,
>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!
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)
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
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
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
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
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
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
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
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.
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 ...".
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'
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
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.
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
16 matches
Mail list logo