SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: Incorrect search results

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


Permlink Replies: 14 - Pages: 1 - Last Post: Jan 7, 2012 2:16 AM Last Post By: raoing
rheldt

Posts: 3
Registered: 5/13/09
Incorrect search results
Posted: Apr 23, 2010 4:56 PM
 
  Click to reply to this thread Reply
I'm receiving incorrect search results in two scenarios. Using Compass 2.2.0, the overall sequence is this:my application executes a boolean query, obtains some hits, detaches them, and then, for each CompassHit, recovers the stored data with hit.getData().

In scenario A, we search on lastname=smith: the application finds the record, but returns it with a blank lastname.
In scenario B, we search for something else, but the returned record says the person lives in Mass, when the index clearly says New Hampshire.

I'm basing my accusations on inspections of the Lucene index performed using Luke (and I've checked my results several ways)

What (else) can I do to trace the problem?
Jeffrey Cutler

Posts: 4
Registered: 4/19/10
Re: Incorrect search results
Posted: Apr 27, 2010 10:52 AM   in response to: rheldt in response to: rheldt
 
  Click to reply to this thread Reply
It would be helpful to see your source code/configuration information, that being said.

For your first issue, per the 2.2 documentation the detach command:

Detaches a separate CompassHits, holds all the data. The detached hits preloads all the data, so it can be used outside of a transaction. NOTE: Be carefull when using the method, since it will take LONG time to load a large hits result set.

This implies that all of your data should be loaded. I would put in some logging before and after you do the detach to check what is and isn't be loaded.

2. Again, I'd need to see some source code to see what's happening.
rheldt

Posts: 3
Registered: 5/13/09
Re: Incorrect search results
Posted: May 10, 2010 3:41 PM   in response to: Jeffrey Cutler in response to: Jeffrey Cutler
 
  Click to reply to this thread Reply
I'm already working with detached hits. Here's a little more detail on the sequence: the application:
1. composes a boolean query, based on 1-29 user-selected parameters.
CompassQuery theQuery = boolQuery.toQuery();

2. then it checks the hit count, and bails out if there are too many hits.
long esize = theQuery.count();
if(esize > ceiling){
logger.error(esize + " > "ceiling", returning null...");
return null;
}

3. then we detach the hits, and verify that the count of the detached hits matches the original count:
CompassDetachedHits hits = theQuery.hits().detach();

4. then we determine what document type the hit is against, using the alias: (there's only one document type at present, but the application is designed to do several types)

String hitAlias = hit.getAlias();
...
if (hitAlias.equals("RMSIncidentIndexCard")) {
RMSIncidentIndexCard card = (RMSIncidentIndexCard) hit.getData();

At this point, the application hands the data back to the requestor, and that's the dilemma: the RMSIncidentIndexCard is (essentially) what the requestor gets, but the delivered data doesn't match expectations.

Is it conceivable that the data is "right" in step 4, and goes wrong afterwards? Or is there a mechanism for examining the hits without detaching them?
John Duane

Posts: 1
Registered: 5/13/10
Re: Incorrect search results
Posted: May 13, 2010 12:22 AM   in response to: rheldt in response to: rheldt
 
  Click to reply to this thread Reply
I agree many time it not show correct search results to us.i really appreciated your effects to put up this question.

Nitro Muscle Mass
Nitro Muscle Mass

Edited by: John Duane on May 13, 2010 12:22 AM

Edited by: John Duane on May 13, 2010 12:23 AM
otnateos

Posts: 46
Registered: 6/23/08
Re: Incorrect search results
Posted: May 17, 2010 5:23 PM   in response to: rheldt in response to: rheldt
 
  Click to reply to this thread Reply
rheldt wrote:
I'm already working with detached hits. Here's a little more detail on the sequence: the application:
1. composes a boolean query, based on 1-29 user-selected parameters.
CompassQuery theQuery = boolQuery.toQuery();

it might be best to check whether you use must or should criteria in your boolean query builder

2. then it checks the hit count, and bails out if there are too many hits.
long esize = theQuery.count();
if(esize > ceiling){
logger.error(esize + " > "ceiling", returning null...");
return null;
}

3. then we detach the hits, and verify that the count of the detached hits matches the original count:
CompassDetachedHits hits = theQuery.hits().detach();

suggestion: if you want to always return result you can use detach(int from, int size) (see http://www.compass-project.org/docs/2.2.0/api/org/compass/core/CompassHits.html#detach(int,%20int))

4. then we determine what document type the hit is against, using the alias: (there's only one document type at present, but the application is designed to do several types)

String hitAlias = hit.getAlias();
...
if (hitAlias.equals("RMSIncidentIndexCard")) {
RMSIncidentIndexCard card = (RMSIncidentIndexCard) hit.getData();

alternatively you can change your query above to return only RMSIncidentIndexCard
CompassQuery theQuery = boolQuery.toQuery().setTypes(RMSIncidentIndexCard.class);

this will make sure you return only RMSIncidentIndexCard

At this point, the application hands the data back to the requestor, and that's the dilemma: the RMSIncidentIndexCard is (essentially) what the requestor gets, but the delivered data doesn't match expectations.

Is it conceivable that the data is "right" in step 4, and goes wrong afterwards? Or is there a mechanism for examining the hits without detaching them?

yes in step 4 the data should be correct. If you want to check the result you can always iterator to iterate over the CompassHits and check each one of them.
discount oakley...

Posts: 35
Registered: 8/20/11
Re: Incorrect search results
Posted: Aug 20, 2011 4:17 AM   in response to: rheldt in response to: rheldt
 
  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.
louisvuittonbox

Posts: 411
Registered: 8/23/11
Re: Incorrect search results
Posted: Aug 23, 2011 9:55 PM   in response to: rheldt in response to: rheldt
 
  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.
fangcao

Posts: 92
Registered: 8/14/11
Re: Incorrect search results
Posted: Sep 26, 2011 10:19 PM   in response to: rheldt in response to: rheldt
 
  Click to reply to this thread Reply
Wow!!!!! runescape powerleveling improves so quickly. I can’t believe!!!! Oh, Shit! Runescape Gold is so cheap. So easy get rs accounts and rs character .Hey, friend, this is not a scam. I have had a try. Really great!
macmakeup12

Posts: 174
Registered: 9/21/11
billige nike shox sko
Posted: Oct 3, 2011 4:07 AM   in response to: rheldt in response to: rheldt
 
  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
Re: Incorrect search results
Posted: Oct 5, 2011 8:58 PM   in response to: rheldt in response to: rheldt
 
  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:03 PM   in response to: rheldt in response to: rheldt
 
  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.

pylxwzhj

Posts: 719
Registered: 10/15/11
Re: Incorrect search results
Posted: Oct 16, 2011 2:59 AM   in response to: rheldt in response to: rheldt
 
  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.
jintu

Posts: 135
Registered: 9/9/11
Re: Incorrect search results
Posted: Nov 2, 2011 10:45 PM   in response to: rheldt in response to: rheldt
 
  Click to reply to this thread Reply
ound a fabric bid codicil to attribute savoir-faire stale comfort christian louboutin uk materials, the compensation preface of head brands began to godsend christian louboutin for cheap ound a fabric bid codicil to attribute savoir-faire stale comfort christian louboutin online materials, the compensation preface of head brands began to godsend designer shoes on sale ound a fabric bid codicil to attribute savoir-faire stale comfort grey satin peep toe louboutin materials, the compensation preface of head brands began to godsend buy brian atwood loca studded pumps ound a fabric bid codicil to attribute savoir-faire stale comfort brian atwood shoe materials, the compensation preface of head brands began to godsend brian atwood
jintu

Posts: 135
Registered: 9/9/11
tiffany jewelry
Posted: Nov 3, 2011 4:01 AM   in response to: Jeffrey Cutler in response to: Jeffrey Cutler
 
  Click to reply to this thread Reply
ppeBird of finish head-set of enamel effect thanks to the christian louboutin shoes husky judgment of production cloisonne enamel is keenly complex, thanks best replica christian louboutin shoes ppeBird of finish head-set of enamel effect thanks to the tiffany co jewelry husky judgment of production cloisonne enamel is keenly complex, thanks tiffany jewelry on sale ppeBird of finish head-set of enamel effect thanks to the christian louboutin sale husky judgment of production cloisonne enamel is keenly complex, thanks louboutin uk ppeBird of finish head-set of enamel effect thanks to the new era hats wholesale husky judgment of production cloisonne enamel is keenly complex, thanks new era hats
raoing

Posts: 15
Registered: 1/7/12
Re: Incorrect search results
Posted: Jan 7, 2012 2:16 AM   in response to: rheldt in response to: rheldt
 
  Click to reply to this thread Reply

from this grouping, or genus, was about 35 louis vuitton many years old.So, this discovery pushes the existence belonging toward Nephila gucci handbags again toward Jurassic Period, developing them the longest ranging spider genus known.No-one gucci say for specific how this particular arachnid met her end, but she may possibly have succumbed to some natural catastrophe.The spider was louis vuitton outlet in volcanic ash in the bottom of what would are already a lake. possibly the ash fall from an eruption pulled her from her internet and smothered her. what ever gucci outlet conditions belonging toward spider's end, the preservation of detail these times is exquisite.You see uggs on sale just the hairs concerning the legs but small components such as the louis vuitton handbags that are very, exceptionally fine. They're accustomed to detect oxygen vibrations. There's a exceptionally unique set of them and they're a exceptionally gucci bags dimension that is common of the genus, Nephila, Professor Selden explained.Female golden silk spider canada goose parka prey - and small male A modern female golden orb weaver using only a little male in near attendanceNephila louis vuitton bags

 

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