SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: Query Syntax for "OR" Queries

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


Permlink Replies: 33 - Pages: 3 [ 1 2 3 | Next ] - Last Post: Dec 3, 2011 4:34 AM Last Post By: longchamp
James Carman

Posts: 10
Registered: 8/1/08
Query Syntax for "OR" Queries
Posted: Aug 1, 2008 8:38 AM
 
  Click to reply to this thread Reply
If I run my query in Luke, it doesn't require me to put "OR" between search terms, but if I try the same query like this:

String queryString = "slappy white"
CompassSearchHelper helper = new CompassSearchHelper(indexer.getCompass());
CompassSearchResults results = helper.search(new CompassSearchCommand(queryString));


it comes back with no results. It's no big deal for me to add "OR" into the query string. I was just wondering why Compass requires it, but Luke doesn't. Just having terms there in the query string seems to be the correct approach based on the syntax guide for lucene. It should treat it as an "OR" query.
Kjersti B Berg

Posts: 39
Registered: 9/26/07
Re: Query Syntax for "OR" Queries
Posted: Aug 1, 2008 12:48 PM   in response to: James Carman in response to: James Carman
 
  Click to reply to this thread Reply
Compass recently changed the default operator to AND, but you can easily change it back to or with this setting:
<prop key="compass.engine.queryParser.default.defaultOperator">OR</prop>

You can also set it programmatically just for one query like this:
builder.queryString(searchString).useAndDefaultOperator().toQuery());


Edited by: Kjersti B Berg on Aug 1, 2008 12:49 PM
James Carman

Posts: 10
Registered: 8/1/08
Re: Query Syntax for "OR" Queries
Posted: Aug 6, 2008 8:07 AM   in response to: Kjersti B Berg in response to: Kjersti B Berg
 
  Click to reply to this thread Reply
Works like a charm! Is there some documentation somewhere about the decision making process for that change? It seems weird that it would differ from the "norm" of the rest of the Lucene code (or at least Luke). In any case, thank you for your quick (and very helpful) reply.
Kjersti B Berg

Posts: 39
Registered: 9/26/07
Re: Query Syntax for "OR" Queries
Posted: Aug 6, 2008 8:24 AM   in response to: James Carman in response to: James Carman
 
  Click to reply to this thread Reply
Here is the JIRA http://issues.compass-project.org/browse/ CMP-553
James Carman

Posts: 10
Registered: 8/1/08
Re: Query Syntax for "OR" Queries
Posted: Aug 6, 2008 9:02 AM   in response to: Kjersti B Berg in response to: Kjersti B Berg
 
  Click to reply to this thread Reply
Does it really make more sense to use AND rather than OR? When you Google, it uses OR by default.
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: Query Syntax for "OR" Queries
Posted: Aug 6, 2008 12:35 PM   in response to: James Carman in response to: James Carman
 
  Click to reply to this thread Reply
Based on several requests, many users stated that AND make more sense (also on Lucene mailing list).
James Carman

Posts: 10
Registered: 8/1/08
Re: Query Syntax for "OR" Queries
Posted: Aug 10, 2008 7:05 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
Ok, cool. I was just curious. It doesn't seem so to me, but I'm somewhat of a newbie, so my opinion may change with experience. Thanks again for your prompt reply. Keep up the good work with Compass! So far, I really like the API.
louisvuittonbox

Posts: 411
Registered: 8/23/11
Re: Query Syntax for "OR" Queries
Posted: Aug 23, 2011 9:55 PM   in response to: James Carman in response to: James Carman
 
  Click to reply to this thread Reply
Producing fabulous high end fashion year after year and season after season, gucci outlet is arguably the world's most prestigious designer of clothes. As you would expect from a gucci outlet online that started out solely making leather goods, they are best known for their classic range of gucci bags and gucci handbags which usually feature the trademark company logo or pattern and come either in leather or canvas finishes which look perfect when coupled with matching gucci shoes. Ladies Gucci Shoes are simply the perfect footwear for any occasion and here at Profile we stock a large selection including Gucci Boots, Flats and High Heels. They are designer shoes of the highest quality.
macmakeup12

Posts: 174
Registered: 9/21/11
billige nike shox sko
Posted: Oct 3, 2011 4:09 AM   in response to: James Carman in response to: James Carman
 
  Click to reply to this thread Reply
billige nike shox sko SlendertoneSlendertone Belt Beltbargain-accessories is booming privateSlendertone Belts, whether watches, cell phones or sunglassesSlendertone System. GrowingSlendertone Flex consumerism hasSlendertone New Face led to mendiscount nike shox and women Slendertone Boottom Tonerseeking OPI Nail PolishindividualOPI Nail Polish Wholesale componentsCheap OPI Nail Polish for billige nike shoxreasonsOPI Nail Polish Sale more than mereOPI Summer Splash utility. ThisOPI BrightPair enthusiasm has also ledOPI Colorcopia to muchOPI DS of the OPI FranceduplicityOPI SoftShades and imitationsOPI Spain that havemac-wholesale floodedflat iron outlets theNike Air Max Sko Women consumeri love shop here market todayflat iron box that hasnew bag tastedLip Gloss Ladygaga bloodflat iron stores. One of thevibram five fingers review elementsvibram five fingers review thatnike shox men are theMac Cosmetics mostP90X reviews imitated Oakley Sunglassesof OakleyCheap Oakley Sunglasses sunglasses. Industry Wholesale Oakley Sunglassesestimates say thatOakley Sunglasses 25 Nike Shox Men SkopercentOakley Sunglasses Cheap correct Oakley Oakley Multi Lenssunglasses nike shox womenobservedNike Air Max Sko Men in theOakley Polarized currentnike shox sko market,slendertone
factoryoutlet

Posts: 523
Registered: 10/5/11
coach factory outlet
Posted: Oct 5, 2011 9:51 PM   in response to: James Carman in response to: James Carman
 
  Click to reply to this thread Reply

coach factory outlet offer excellent, elegant coach products in order to generate room for your new collections.They're purchased more quickly that you may at any time imagine.coach factory store is the greatest destination to buy what type of bags you like. If you need to manage a new Coach carrier and most preferable strategy is to the coach regarding coupon codes.Here's your new way to look sophisticated styles. Carry the hot coach factory outlet store of this summer and be the true trendsetter!in the market you definitely can find various colorways that are designed in as well as the high quality that applied in. For most of you would like to come. So just come to our coach factory outlet online store to choose one.

coach factory outlet is really sizzling kinds of shopping way for you. With the usage of the replica designer coach bags, you can surely be able to change your individual looks in a stunning manner.You know, Coach items are so perfect and fascinating. Now I grow up, and find coach outlet on the Internet offering affordable products with reliable quality.Many fashionable women match with practical Coach Purses which will make the street shopping become relaxed,and make every person can enjoy more diversiform combination in coach factory outlet online.The coach factory outlet store are utilized for formal event in company area that will display your excellent taste.Not only does a briefcase make is easier to carry things.

Almost everyone has identified effectively about this, below, among the best to make sure you will get much more information about coach outlet.In the coach outlet online shop, a collection of high quality and hottest Coach Shoulder Bags is offered to you. They are all at the best prices you will ever find.

You know, Coach items are so perfect and fascinating. Now I grow up, and find coach outlet on the Internet offering affordable products with reliable quality.Once visit, you will be unable to restrain loving it. Warmly welcome all of you to the Summer Sales Promotion on coach factory outlet.coach factory outlet has new coach laptop bags in listing. No matter which style do you want, we can provide it for you.Coach bags enjoy high popularity throughout the world. I would like to share the coach factory outlet online with you. What are you waiting for? Just come to visit.

coach factory outlet supplies the newest and most fashionable brand Coach on sale.The more Coach shoulder bags you order, the more discount you will get.It's wonderful to find out it does not slip in your signature at the bottom of the case and the appearance of brass accents from coach outlet online, Because women who can look stylish this summer.coach outlet has a zippered closure and buckles for extra security. Shiny brass hardware, rounded leather handle, and an interior pocket. It also includes a limited edition Hawaii luggage tag and lock.You can find all kinds of coach bags whatever you chose which one in coach factory outlet online will never be out of fashion. Not only they have many nice and design styles, but also made from the finest leather and fabric.

With the great diversity of styles, patterns and sizes available nowadays, finding the right pieces to highlight your personality is quite important. coach outlet offers exactly what you want.coach factory outlet supplies the newest and most fashionable brand Coach on sale.The more Coach shoulder bags you order, the more discount you will get.Look at this golden Coach bag in the? coach factory outlet online.Those new bags with classic and fashionable design are more and more popular now!After graduating from university, my cousin came back to my hometown from USA last month. She told me that coach outlet store is very popular among her classmate.

coach outlet online own a couple of line, color, or the selected theme, it should be a good choice. It may be the place where offer the bag ladies handbag, you will be able to follow a course of education or training receives for the slim project chest strap wallet.coach outlet will send you a coupon in the post to use in their upon only after you type a achieve. The Coach bags are customarily somewhat many than the ones in the stores.In particular, products from coach factory outlet with leather design are fashionable, handmade,leading the wave of American pop.It with simple,durable and unique style to win consumers.coach factory not only supply with the highest quality crystal at reasonable price but also provide good after-sales service. Companies operating purposes: science and technology in order to survive, credibility and development, strict quality control.

coach outlet handbags's special design and fashion is certainly and so eye-catching, I hope you are able to get much more attention towards the Cheap Coach Crossbody.As long as you open our coach factory outlet webpage, you will view various Coach New Arrivals which are the most popular also the most fashionable in this year.Are you anxious to choose some of the brand bags? Are you searching for reliable sellers? When you come to the coach factory outlet online, these are not problems.

At the coach outlet online you have the largest selection of the day. If you touch the item and like it, keep it in your possession until you make your final decision.Over the years, coach factory online has added a multitude of new handbag shapes, styles and materials to their collection. However, the highest care is taken that every Coach handbags is both aesthetically beautiful and functional.Are you searching for a cool and stylish coach bag? The coach factory outlet online Online is your first priority.

factoryoutlet

Posts: 523
Registered: 10/5/11
louis vuitton outlet
Posted: Oct 5, 2011 9:57 PM   in response to: James Carman in response to: James Carman
 
  Click to reply to this thread Reply

louis vuitton outlet leads you to bags collection of wide, such as LV bags and LV handbag etc. They are main name in luxury and style. It is excellent quality, fine Italian technology and extraordinary beauty.LV is universally renowned as a luxury brand. louis vuitton online store offers customers the newest fashion collections which can make you different.

In the past, Louis Vuitton only emphasis on classic, but in recent year, Louis Vuitton change its strategy and style to acquire new breakthrough. Especially louis vuitton bags like Louis Vuitton Vernis Wallet.Want to become more charming and faddish? Go to visit louis vuitton outlet webpage and select the most suitable products for yourself.

Want to become more charming and faddish? Go to visit louis vuitton outlet webpage and select the most suitable products for yourself.louis vuitton outlet online may often be the consideration alternative inside of your event to get these kinds of bags.Is without a doubt louis vuitton online seriously is present? Is it possible to offer an outlet designed for Louis Vuitton merchandise speaks out?

The choices are likely to be basically countless seeing that louis vuitton outlet occurs with the help of completely new and also incredible concepts once in a while.Mainly because mentioned before, you could buy in the louis vuitton online, via the producer's the web outlet. Owning worn it in past times. They can supply a appropriate evaluate for the property's simplicity as well as client service description.louis vuitton outlet online is the method to show the confidence of our handbags. The person who show himself in front of other people is a confident one.

LV bags in the louis vuitton outlet are a feminine update on an urban classic. With plenty of room for all of your essentials this covetable carryall will take you through the weekend in style.LV is universally renowned as a luxury brand. louis vuitton online store offers customers the newest fashion collections which can make you different.

This collection focus more on color selection compared with other LV handbags. Cute and sunshine design style increases its charm. louis vuitton outlet online provides you the very famous luxury worldwide brand.We are glad you come to join in our louis vuitton outlet online store, because the winter is upcoming now, Louis Vuitton released many new handbags to feedback our customers.Just come to visit once the louis vuitton online, you will fall in love with its fancy bags, purses, sunglasses, shoes and so on.

fairly

Posts: 20
Registered: 10/12/11
Re: Query Syntax for "OR" Queries
Posted: Oct 12, 2011 1:42 AM   in response to: James Carman in response to: James Carman
 
  Click to reply to this thread Reply
oakley sunglasses is one of the leading sports performance brands in the world. The holder of over 500 patents, discount oakley sunglasses is continually seeking problems, solving them with inventions and wrapping those inventions in art. This philosophy has made oakley sunglasses discount one of the most iconic and inimitable brand on the market and in turn made oakley frogskins some of the most sought after.welcome to our oakley sunglasses outlet. with big discount ,all oakley holbrook in lowest price.
pylxwzhj

Posts: 719
Registered: 10/15/11
Re: Query Syntax for "OR" Queries
Posted: Oct 16, 2011 3:45 AM   in response to: James Carman in response to: James Carman
 
  Click to reply to this thread Reply
All of

LV Bags

the proposed

Louis Vuitton Handbags

sanctions carry

Coach Outlet Store

with them

Chanel Purses

considerable political

Coach Factory Store

and economic

Coach Factory Outlet

risks. While

Chanel Bag

Yukiya Amano, the

Coach Factory Outlet

cautious director general

Chanel Purses

of the atomic

Coach Factory Store

energy agency

Coach Factory

, talked publicly

Chanel Bags

in September

Chanel Handbags

about publishing

Moncler Jackets

some of the

Louis Vuitton Handbags

most delicate

Coach Outlet

data suggesting

Chanel Bags

Iran worked on

Moncler Shop

nuclear triggers

Coach Outlet Online

and warheads, officials who have spoken with him say he is concerned that his inspectors could be ejected from Iran, shutting

Moncler Shop Online

the best, though narrow, window into its nuclear activities.Similarly, China and Russia, among other major Iranian trading partners, have resisted further oil and financial sanctions, saying the goal of isolating Iran is a poor strategy.
ugg5825boots

Posts: 67
Registered: 10/18/11
Re: Query Syntax for "OR" Queries
Posted: Oct 18, 2011 3:33 AM   in response to: James Carman in response to: James Carman
 
  Click to reply to this thread Reply

Cheap Ugg Boots are tinted in classic styles on the frames. Sometimes, Ugg Boots are tinted in special ones on the lenses. In the current market, pure, red ,pink, black and chestnut Discount Uggs Sale are some of the most popular winter boots. Besides, there are many mixed color with red, flower or leopard, Ugg Boots Uk can make sure that users get their most suitable ones depending on personality. Basically, there are Australia Ugg Boots at different prices and they can meet different peoples needs. Here show you many tall and Ugg Classic Short boots with big discount.Ugg Classic Boots are the latest craze all over the world. Whatever your outfit,these Classic Ugg Boots will accessorize with style. These ugg boots are a huge hit this winter. Purchase a pair of Cheap Ugg Boots online is the benefit of warm and fashion.Ugg boots australia ugg Boots are made from Quality Australian Sheepskin Materials.
Ugg Australia Boots while aslo you can find Womens bailey button triplet waiting for you.we will let your dream come true,a bloody cool boy is born with our ugg australia in the crowd.We provide a variety of ugg boots for women according to the measurements your supplied.online Shop us for the lastest ugg boots sale.However,a beautiful part of Jimmy choo uggs go more black heels. Heel is the perfect size, as a certain proportion of stacked heel.Come to our website, and choose cheap Bailey button uggs online.UGG Gissella Boots is so sexy .As we know, the ugg boots on clearance is the first class and famous brand. So it is the good chance for you.uggs are made crafted and finished by hand. Materials are selected carefully.OUR SITE supply ugg bailey at cheapest price guaranteed and lifetime free servicing.Cheap ugg boots discount 60% off.We offer 100% authentic products.classic tall ugg boots shoes as a young brand developed so radidly by its high quality and fashion design.ugg boots cardy as daily use and can afford it, this UGG Classic Cardy Boots 5819 is a good choice.This selection of classic tall ugg only choice is the same.Designer bailey button uggs sale For Sale.UGG Bailey Button Boots sale with Best Quality and Lowest Price.Buy fake uggs for sale from online store which supported 24/7 service.I had buy many shoes from uggs deutschland website, this web cheap price and good quality.Our company is a professional manufacturer specialized in fashion Ugg evera.Unlike the other Ugg bailey button bomber shoes, this Ugg bailey button bomber features bright romantic color which is quite suitable for the summer time.ugg outlet shoes are on hot sale.Wholesale distributor and supplier of UGG Sundance II Boots , UGG Sundance .we offer high quality cheap ugg boots.To buy the chanel purses product, the easier has been formed by Ugg Classic Boots online.So great ,Thank you for your share,I like your article very much, and I would appreciate it if you can write more article about this. We have the same opinion about this, ugg australia boots.However,a beautiful part of Uggs for kids go more black heels. Heel is the perfect size, as a certain proportion of stacked heel.Fitness shoes of men uggss are collected at our website.Welcome to browse our website, We found that you registered in our website but you didn't purchase any ugg boots discount.Choose the right ugg cardy means choosing the health.I only like to wear ugg boots sale clearance.In our store you can buy best quality bailey button boots with a great discounts.

winter boots , australian ugg boots,New Arrivals Ugg Boots, Ugg Classic Boots UGG Bailey Button Boots UGG Bailey Button Triplet UGG Classic Argyle Knit UGG Classic Cardy Boots UGG Classic Mini Boots UGG Classic Patent Paisley UGG Classic Short Boots UGG Classic Tall Boots UGG Classic Tall Metallic UGG Fringe Cardy Boots UGG Knightsbridge Boots UGG Mayfaire Boots UGG Nightfall Boots UGG Roxy Short Boots UGG Roxy Tall Boots UGG Stripe Cable Knit UGG Sundance II Boots UGG Tassel Short Boots UGG Ultimate Bind Boots UGG Ultra Short Boots Ugg Handbags Kids Ugg Boots Mens Ugg Boots Ugg Jimmy Choo Boots UGG Classic Short Metallic UGG Classic Crochet Boots UGG Lattice Cardy Boots

aaa

Posts: 34
Registered: 11/2/11
new era hats
Posted: Nov 2, 2011 3:38 AM   in response to: Kjersti B Berg in response to: Kjersti B Berg
 
  Click to reply to this thread Reply
etended watchmaking bestiary. At a occupation when quartz being appeared louboutin sale to deem superseded mechanics rule the measurement of time, the christian louboutin shoes etended watchmaking bestiary. At a occupation when quartz being appeared tiffany replica jewelry to deem superseded mechanics rule the measurement of time, the tiffany jewelry etended watchmaking bestiary. At a occupation when quartz being appeared christian louboutin heels to deem superseded mechanics rule the measurement of time, the christian louboutin heels etended watchmaking bestiary. At a occupation when quartz being appeared cheap new era hats to deem superseded mechanics rule the measurement of time, the nfl hats for sale
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