SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: what is the property or method in compass like "group by " in sql?

This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Pages: 1 - Last Post: Jun 28, 2007 11:57 PM Last Post By: ker
ker

Posts: 2
Registered: 6/26/07
what is the property or method in compass like "group by " in sql?
Posted: Jun 27, 2007 12:08 AM
 
  Click to reply to this thread Reply
I am using compass now,just i have a problem on that how can get the results without the same property ,for example ,i search the result with a poperty named "cellphone",but i hope the results whick return back have the only one with the cellphone that i passed.who can give me a hand?
jolinar13

Posts: 129
Registered: 12/21/06
Re: what is the property or method in compass like "group by " in sql?
Posted: Jun 27, 2007 2:21 AM   in response to: ker in response to: ker
 
  Click to reply to this thread Reply
Hello,

I hardly understand your English, but I guess your question is about lucene syntax.

If your cellphone property has meta-data named "cellphone", you can search people whose cellphone number is "0623568974" with the following query:

cellphone:0623568974


Note that the phone number must exactly match the one stored in the database (otherwise, try a fuzzy search, as explained in Lucene syntax -see link below-)

http://lucene.apache.org/java/docs/queryparsersyntax.html

Hope it helps.
Florian
ker

Posts: 2
Registered: 6/26/07
Re: what is the property or method in compass like "group by " in sql?
Posted: Jun 28, 2007 11:57 PM   in response to: ker in response to: ker
 
  Click to reply to this thread Reply
yes,my english is very poor,:),thanks very much!
Legend
Guru: 2001 + pts
Expert: 501 - 2000 pts
Super-star: 101 - 500 pts
Assistant: 51 - 100 pts
Participant: 0 - 50 pts
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums