Suppose I have an IndexReader instance obtained with this API:
DirectoryReader.open(IndexWriter, boolean);
(I actually use a ReaderManager in front of it, but that's beside the
point).
There is no manual commit happening prior to this call. Now, I would like
to keep this reader around until no l
Hi,
Apologies for cross posting; i got no response on the Sorl list.
We have a developement environment running trunk but have custom analyzers and
token filters built on 4.6.1. Now the constructors have changes somewhat and
stuff breaks. Here's a consumer trying to get a TokenStream from an An
Hello Michael,
We tried the sample of code but the value of "hits" we are getting
is null. We tried to search on net but no proper sample example given
which can help us to understand. We attached our code with mail
.please it would be great if you can give a look to our code.
Thanks.
On Wed
Hi,
Can you please post your complete stack trace? I have no idea what LUCENE-5388
has to do with that error?
Please make sure that all your Analyzers and all of your Solr installation only
uses *one set* of Lucen/Solr JAR files from *one* version. Mixing Lucene/Solr
JARs and mixing with Facto
Hi,
It looks like the mailing list stripped the attachment; can you try
inlining the code into your email (is it brief?).
Also, have a look at the unit-test for ToParentBJQ and compare how it
runs the query with your code?
Mike McCandless
http://blog.mikemccandless.com
On Thu, Jan 30, 2014 at
After indexsearcher.search you should call c.getTopGroups? See the
TestBlockJoin.java example...
Can you boil this down to a runnable test case, i.e. include
createProductItem/createProduct sources, etc.
Mike McCandless
http://blog.mikemccandless.com
On Thu, Jan 30, 2014 at 2:20 AM, Priyanka
Hello Michael,
following is the code. This is the Sample which we are trying to get
the the hits.Please Guide us
public void newTry() throws IOException
{
StandardAnalyzer analyzer = new StandardAnalyzer
(Version.LUCENE_41);
/
Hello Mike
We tried the following code, but it is giving null :
TopGroups hits =
c.getTopGroups(
productitemQuery,
Sort.RELEVANCE,
0, // offset
10, // maxDocsPerGroup
0, // withinGroupOffset
true // fillSortFields
);
On Thu, Jan 30, 2014 at 2:35 AM, Michael McCandless
Lucene absolutely relies on this behavior, that most filesystems support.
I.e., if you have an open file, and someone else deletes the file
behind it, your open file will continue to work until you close it,
and then it's "really" deleted. ("delete on last close")
Unix achieves this by allowing
You should not use TextField.TYPE_STORED to index your docType field:
that field type runs the analyzer. I'm not sure that matters in your
case, but that's deadly in general. Use StringField instead (it
indexes the provided text as a single token).
Likewise for color, size fields.
Try running y
Hi Uwe,
The bug occurred only after LUCENE-5388 was committed to trunk, looks like its
the changes to Analyzer and friends. The full stack trace is not much more
helpful:
java.lang.AbstractMethodError
at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:140)
at
io.o
Hello Mike
Thanks for the reply ,Now we are able to get TopGroups. but still we
are not able to get score .how ever we got matched Parent and child
through following code. We need score for showing in our application
for ranking .
Document childDoc = indexsearcher.doc(group.scoreDocs[0].doc)
If you are sensitive to things being committed to trunk, that suggests that
you are building your own jars and using the trunk. Are you perfectly sure
that you have built, and are using, a consistent set of jars? It looks as
if you've got some trunk-y stuff and some 4.6.1 stuff.
On Thu, Jan 30,
Hi Markus,
Lucene trunk has a backwards incompatible API, so Analyzers compiled with
Lucene 4.6 cannot be used on Lucene trunk. The change in the Analysis API will
not be backported, because this would cause the same problem for users updating
from Lucene 4.6 to Lucene 4.7. In Lucene 4, we try
Hi Uwe,
You're right. Although using the analysis package won't hurt the index, this
case is evidence that it's a bad thing, especially if no backport is made. I'll
port my code to use the updated API of 5.0.
Thanks guys,
Markus
-Original message-
> From:Uwe Schindler
> Sent: Thursda
You are passing ScoreMode.NONE right now, when you create the
ToParentBlockJoinQuery; have a look at the javadocs for the other
options?
You could normalize all scores by the maxScore, if you must produce a
percentage?
Mike McCandless
http://blog.mikemccandless.com
On Thu, Jan 30, 2014 at 7:31
16 matches
Mail list logo