|If in general the default values should be good for general purpose.
It 'll be good to know which part you want to optimize and exactly what
problem you want to solve.
But even you get very specificHi everybody
I always used lucene with its default configuration values.now I want to
know if there is any document in which initial values for configuring a
Lucene project is specified (values for LHi
We have an application in which we want to index feeds. Each feed is a
collection of articles and some other metadata. The problem is that
sometimes we want to search for feeds and sometimes
5 okt 2007 kl. 21.50 skrev vivek sar
> Once the writer.addIndexes is done I call writer.optimize()
No biggie but IndexWriter.addIndexes() will automatically optimize
so that is one line of cod
Once in a while we kill the running application using "kill -9 ". I
To quote a great man who frequently quotes another great man "Well
there 's your problem! "
stop using "kill -9 " ... i 'll say i
Is there any way to find out if an instance of Query has any terms within it?
I have a custom parser (QueryParser does not do everything I need) and it
somtimes creates empty BooleanQuerys. (Th >
> Hmmm.. can you give some more concrete examples of what you mean by this?
> both in terms of the use case you are trying to satisfy and in terms of
> how your current code works ... you don 't havThanks for the response Michael.
Sorry I 'm using Lucene 2.2. We are using Lucene to index our database
(Oracle) into documents for full-text search feature. Here is the
process of indexing
1) HaveOn 5-Oct-07 at 11 27 AM Chris Hostetter wrote
> that 's what i thought first too and it is a problem i 'd eventaully
> to tackle ... it was the part about "c " being in a differnet field
> would like to allow for the possibility that a and b are near each other
> one field while c is in another field.
I understand the OP to want a PhraseQuery that has an intention On 5-Oct-07 at 10 54 AM Chris Hostetter wrote
> I am using a hand rolled query of the following form (implemented
> SpanNearQuery not a sloppy PhraseQuery)
> a b c > +(a AND b AN
ihave just downloaded lucene 2.2.0 and tomcat and have set my classpaths
now i am got stuck at the very first stage of indexing files which ask me
to do like this
java org.apache.lucene.demo. I am using a hand rolled query of the following form (implemented with
SpanNearQuery not a sloppy PhraseQuery)
a b c > +(a AND b AND c) OR "a b "~5 OR "b c "~5
The obvious solution "a b cWhat makes you think the query needs to be rewritten to extract terms?
Not the case...unless you want to extract Terms from say a Wildcard or
Fuzzy query. In that case you need an IndexReader howevHi
Is there any way to find out if an instance of Query has any terms
within it? I have a custom parser (QueryParser does not do everything I
need) and it somtimes creates empty BooleanQuerys. (ThYou may want to look at the FunctionQuery capability either in
Lucene or the expanded capabilities (recently added) in Solr.
On Oct 4 2007 at 2 39 PM pp1907@(protected) wrote
> "vivek sar " <vivextra@(protected) > wrote
> We are using Lucene 2.3.
Do you mean Lucene 2.2? Your stack trace seems to line up with 2.2
and 2.3 isn 't quite released yet.
> The problem we are facingHi
We are using Lucene 2.3. The problem we are facing is quite a few
times if our application is stopped (killed or crash) while Indexer is
doing its job the next time when we bring up the applicaIt 's hard to say but two things will help you track this down.
1 > get a copy of Luke to examine your index (which you may have already).
2 > Query.toString is your friend. It 'll show you exactly whatHi
Were planning to use Lucene or Solr within our
application and wanted to know if it can support the
We have (say) 5 fields in a document which need to be
indexed. 4 fields aHi
I am new to lucene and am currently having some problems searching an index.
so we make the index like this
doc.add(new Field( "itno " item.getMMITNO() Field.Store.YES
In Scorers when skipTo() or next() returns true for the second or later
time the result of doc() will be increased.
When Scorer.skipTo() does not have document order documents will
be lost wHello
I 'm using the following method to obtain the position of some terms in a document
int indexOfTerms TermPositionVector.indexesOf(String terms int start int len)
Should I parse the sHi
I 've recently tried the RegexQuery with Lucene which works fine with the
following code snippet
String q "someregex "
Term t new Term( "content " q)
Query query new RegHi
I have a custom Query class that provides a long list of lucene docIds (not for filtering purposes) which is one clause in a standard BooleanQuery (which also contains TermQuery instances).
I Thanks for the reply. Everything is working correctly now. I jumped the gun without debuging it
more. booleanANDSearch was not getting set correctly.
Erick Erickson wrote
> I don 't see a problem wiDuplicate Documents In An Index
The updateDocument method of Index Writer indicates that a delete term
occurs before the update
document takes place (i.e. the document is replaced in the index but
Hi again As the subject would suggest I 'm trying to implement a layer of
proximity weighting over lucene. This has greatly increased search
relevance but at the same time has knocked down performancI don 't see a problem with your booleanANDSearch thingy although
I haven 't tried it.
Does toString() return the same string regardless of the value of
booleanANDSearch? That would surprise me. The dI am new to Lucene and am having problems with booleanQueries. How do you write Boolean OR and AND
Is this an OR query