Hi,
my guess would also be that the StandardAnalyzer lowercases your terms while
you have indexed them as they are without lowercasing.
One idea would be to use the PerFieldAnalyzerWrapper and map a
KeywordAnalyzer (which basically doesn't tokenise your stream at all) to any
fields you want not an
have you considered a custom sort strategy using a ScoreDocComparator ?
Inside your implementation you have access to individual doc scores and you
could create a parallel (to your docs) array of floats which stores your
r1,r2,r3 etc values.
Then use this array to implement your int compare(ScoreDo
hi,
I’m not exactly sure I understand they the type of sorting you are trying to
achieve.
You have an updateTime field and you mention that "We want the new document
in the
front and also want high score document in the front".
My take on this is that you want to first sort by the updateTime a
hi,
maybe you could not break but rather collect them in an ordered collection.
If it's a web app you are having you can then pass it up your view layer
wrapped in json?
savvas
2009/11/26 DHIVYA M
> Thanks for your suggested code sir.
>
> But it displays only one word.
>
> Ex:
> if the input i
Hello ,
I would also prefer to store the content in the index because, as Erick
points out this leads to a more simplified design but also because it allows
me to preserve the relevance sort.
If you store only the item id in the index then when extracting all the
other required data from supp
Hello,
I'd like to ask if anybody has any thoughts on the best strategy to use when
implementing a paging scenario in a Lucene search.
In order to implement my paging list before the view is rendered I need to
know the total number of documents this particular search would return but I
still need
Hello,
You could use a PhraseQuery with the terms "cool" and "gaming" and
"computer" and set the slop factor you reckon is right. Then could assign a
boost to this query only, which will make it bubble up the list.
I don't think you can get away without specifying a slop factor though(like
in the