-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Search doesn't index numbers?
PostPosted: Mon Dec 17, 2007 4:52 am 
Newbie

Joined: Mon Dec 17, 2007 4:43 am
Posts: 1
Hi!

I am evaluating Hibernate Search and is very please but for one exception and I really like to belive that I have made an error somehow.

It seems like no number is indexed. When trying to search for for them I don't get any answers while querying another column I get the words.

The field with the number is defined as (customer-number:

@Field(index = Index.UN_TOKENIZED, store = Store.NO)
@Boost(5f)
private String kundNr;

And the query is:

kundNr:12634

What could I have done wrong? When searching for this field:

@Field(index = Index.TOKENIZED, store = Store.NO)
private String namn;

namn:Santa

it works perfectly.

Thanks in advance
Roland Carlsson



Hibernate version:
3.2.1GA Hibernate
3.0.0GA Hibernate search

Database
Mysql 5.0.48


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 22, 2007 4:54 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
The query parser uses the analyzer, probably your analyzer is messing around numbers. You might need to use the programmatic API

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.