Hi testn,
here is my index details:
Index fields :5 fields
Store Fileds:10 fields
Index code:
contents=new StringBuilder().append(compCallingPartyNumber).append(
Hi,
I have this problem too. I made a test use StandardAnalyzer:
Analyzer analyzer = new StandardAnalyzer();
Reader reader = new BufferedReader(new InputStreamReader(new
StringBufferInputStream(Aaa,0982,abc)));
TokenStream tokenStream =
A couple things to make sure:
1. When you open IndexWriter, what is the analyzer you use?
StandardAnalyzer?
2. How many records are there?
3. Could you also check number of terms in your indices? If there are too
many terms, you could consider chop something in smaller piece for
example... store
poeta simbolista wrote:
I'd want to know the best way to look for strange encodings on a Lucene
index.
i have several inputs where input can have been encoded on different sets. I
not always know if my guess about the encoding has been ok. Hence, I'd
thought of querying the index for some
Thank´s for the reply Grant, let me try to explain exactly what I´d like to
do. Take the 2 docs:
Doc1: Microsoft is a nice software company, and Xbox seems to be a nice
product too.
Doc2: Nintendo and Sony have been in the game industry for a long time, but
now, Microsoft is trying to enter with
I'm trying to find a query that would boost a document based on a field in
the document.
I have a simple index with title, description, date, ... I also have a field
called vote. I want items that have been voted higher to be ranked as
higher in the search results. Is there a query and or
I use StandardAnalyzer.the records daily ranges from 5 crore to 6 crore. for
every second i am updating my Index. i instantiate IndexSearcher object one
time for all the searches. for an hour can i see the updated records in the
indexstore by reinstantiating IndexSearcher object.but the problem
Thank you Steven,
I have problems while providing those searches, I think it is because of the
StandardAnalyzer is taking those bad-encoding characters as separators hence
not creating such tokens when reading...
Regarding the other idea you provided, did you mean then, that if a document
What would happen if you sorted by vote? Perhaps within ranges
of scores? There's a thread in the list in response to a post I
made about buckets that might be relevant
Otherwise, you might think about boosting the relevant
parts of the document at *index* time based on the value
of vote
Well a sort would remove the relevance portion of the query, which I really
don't want to do. I tried using the ValueSourceQuery but it doesn't seem
to be able to handle negative vote values. Buckets sound interesting but
since there is no max voting value it would be difficult to build the
I think you misunderstand. The buckets are NOT the votes,
they are the relevance scores from the search. So your
search returns relevance scores (raw) from, say 1 - 100.
You could collect the results in 5 buckets and sort
by vote *within* the bucket. So the user still sees
the most relevant
Doh... Thanks.
Erick Erickson wrote:
I think you misunderstand. The buckets are NOT the votes,
they are the relevance scores from the search. So your
search returns relevance scores (raw) from, say 1 - 100.
You could collect the results in 5 buckets and sort
by vote *within* the bucket.
Rafael, are you looking for IndexReader.getTermFreqVector?
--
karl
5 sep 2007 kl. 16.48 skrev Rafael Rossini:
Thank´s for the reply Grant, let me try to explain exactly what I´d
like to
do. Take the 2 docs:
Doc1: Microsoft is a nice software company, and Xbox seems to be a
nice
product
On Sep 5, 2007, at 10:48 AM, Rafael Rossini wrote:
Thank´s for the reply Grant, let me try to explain exactly what I´d
like to
do. Take the 2 docs:
Doc1: Microsoft is a nice software company, and Xbox seems to be a
nice
product too.
Doc2: Nintendo and Sony have been in the game industry
: I use StandardAnalyzer.the records daily ranges from 5 crore to 6 crore. for
: every second i am updating my Index. i instantiate IndexSearcher object one
: time for all the searches. for an hour can i see the updated records in the
: indexstore by reinstantiating IndexSearcher object.but the
I set IndexSearcher as the application Object after the first search.
here is my code:
if(searcherOne.isOpen()==(true)){
Directory compressDir2 =
: I set IndexSearcher as the application Object after the first search.
...
: how can i reconstruct the new IndexSearcher for every hour to see the
: updated records .
i'm confused ... my understanding based on the comments you made below
(in an earlier message) was that you already
17 matches
Mail list logo