lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Does search query return specific result.?
Date Fri, 16 Jan 2009 00:04:17 GMT

: I believe the reason is because, Solr returns the document with all of the
: "Tag" field's content.
: 
: Now, the question is: Is there a way to make it return only Tag that match
: the criteria from the same document?

not really .. highlighting with things like the NullFragmenter can 
probably make things like this work, but for an auto-suggest type 
applicaiton you're going to want to be fast -- the added processing of 
highlighting is probably not the best way to go.

the thing to remember is that you typically want one "document" for each 
"thing" that you are going to return form a "search" ... for an 
auto-suggest type application, you frequently want one doc per "word" that 
your auto-suggest queries are going to return.

There are alternate approaches however ... the ne TermsComponent for 
example makes it easy to get direct access to the TermEnum for an 
arbitrary field based on things like a prefix, or min/max doc requenty -- 
so a good basic auto-suggest can be implemented that way even with your 
docs as you have them indexed ... but if you want more control over the 
weighting/boosting of what comes back from an arbitrary query your going 
to want a special index of "Tags"


-Hoss


Mime
View raw message