Hi,
Using the following programme I was able to get the entire file path of
indexed files which matched with the given queries. But my intention is to
get only the file names even without .txt extention as I need to send these
file names as labels to another application. So, pls. let me know how c
Something like this
File f = new File(path);
String fn = f.getName();
return fn.substring(0, fn.lastIndexOf("."));
--
Ian.
On Fri, Jun 11, 2010 at 11:20 AM, manjula wijewickrema
wrote:
> Hi,
>
> Using the following programme I was able to get the entire file path of
> indexed files which matc
Hi!
We are working on an experimental code-search engine that helps users to
find example code snippets based on what a developer already typed
inside her editor. Our "homemade search engine" produces some cool
results but its performance is somehow limited :-) Thus, we are
evaluating whether
Others can comment on how to customize scoring, but I wonder if
lucene's default scoring might do the job as is.
If you've got a document in the index (simple translation from your JSON)
class: my.ExampleClass
extends: the.SuperClass
overrides: the.SuperClass.method1() the.SuperClass.method2()
us
Hi Ian,
Am 11.06.2010 15:51, schrieb Ian Lea:
Others can comment on how to customize scoring, but I wonder if
lucene's default scoring might do the job as is.
I agree. It would probably work out of the box with lucene's default
scoring. Actually, I'm getting my feet wet with lucene using ju
Hi,
I am extending QueryParser's newTermQuery and newRangeQuery methods
to make it work with NumericFields.
The problem I see with those methods is that they do not allow checked
exceptions to be thrown. What I would like to do is - if I am parsing
a query parameter (term text or a range part) wh
Currently I am on Lucene 2.2, migrating to 2.9 before eventually plan to move
to 3.1.
In Lucene 2.2, I have a custom hit collector that does both filtering and
sorting my search results.
Let me put the functionality achieved. When a user includes advance search
criteria with text search, I execu
I suspect that you have different jars on the mac than on your other
machines, possibly accessed through something you don't expect being in your
classpath. At least that's the first place I'd look
HTH
Erick
On Thu, Jun 10, 2010 at 1:33 AM, Kit Plummer wrote:
> Hey folks.
> Ran into a probl
Of course you can specify which is first. You can construct a Sort
object with an arbitrary number of fields and the ordering is respected.
That is, you create a Sort object with field1, field2, field3, then field2
is used if and only if the document order isn't determined by field1.
Field3 is used
Hi,
I am using lucene 3.0.1. I use a MultiFieldQueryParser with a
GermanAnalyzer. In my index are some values among others one document
with the title "bauer". I append to every word in my query a ~0.8 (here
I am not sure if this is the way to do it). If I try to search now, I
will not get th
I think CustomScoreQuery might be what you're looking for
HTH
Erick
On Fri, Jun 11, 2010 at 12:12 PM, Marcel Bruch wrote:
> Hi Ian,
>
> Am 11.06.2010 15:51, schrieb Ian Lea:
>
> Others can comment on how to customize scoring, but I wonder if
>> lucene's default scoring might do the job as i
hi,
i had similar issues migrating to using the new collectors... we use a custom
hitcollector too where we accessed document fields to aid in scoring docs.
when migrating - i chose to extend the Collector class where:
.collect method still extended pretty much as before
in the new abstract met
sorry, also forgot to say -
the abstract Collector.setScorer method gives you the new
Scorer (for the new indexreader i.e. index) so keep a pointer to that too as you
look like you need to use it in your .collect method (the new Collector.collect
method is only given the docid now).
the javadocs
13 matches
Mail list logo