You can have a dynamicField in your schema called entity_* and map it to
the your corresponding data structure in this way:
@Field (entity_*)
MapString,String entity;
The key would be your fieldName (other than the entity_).
SOLR-1129 https://issues.apache.org/jira/browse/SOLR-1129 will give you
Hi Avlesh,
Can we use SimpleOrderedMap? It seems deprecated. Is it safe to use , and
how is going to be mapped to the field?
@Field(ne)
SimpleOrderedMapString ne = new SimpleOrderedMapString();
wont work right??
On Mon, Aug 10, 2009 at 11:36 AM, Avlesh Singh avl...@gmail.com wrote:
You can
On Mon, Aug 10, 2009 at 3:57 AM, born2fish tswan...@yahoo.com wrote:
Hi everyone,
We have a web app that uses embedded solr for better performance.
I would advise against it. We use Solr on sites with millions of page views
a month on HTTP. With HTTP keep-alives, the overhead of an http
You'll find the available parameters in various interfaces in the package
org.apache.solr.common.params.*
For instance:
import org.apache.solr.common.params.FacetParams;
import org.apache.solr.common.params.ShardParams;
import org.apache.solr.common.params.TermVectorParams;
As a side note to
Can we use SimpleOrderedMap?
No, Ninad that wouldn't work.
Cheers
Avlesh
On Mon, Aug 10, 2009 at 11:46 AM, Ninad Raut hbase.user.ni...@gmail.comwrote:
Hi Avlesh,
Can we use SimpleOrderedMap? It seems deprecated. Is it safe to use , and
how is going to be mapped to the field?
@Field(ne)
Hi,
I have two Ids DocumentId and AuthorId. I want both of them unique. Can i
have two uniqueKey in my document?
uniqueKeyid/uniqueKey
uniqueKeyauthorId/uniqueKey
Regards,
Ninad Raut
Hallo,
we are using Solr-1.3.
Thanks for your time.
Björn
-Ursprüngliche Nachricht-
Von:
solr-user-return-24991-hachmann.bjoern=guj...@lucene.apache.or
g
[mailto:solr-user-return-24991-hachmann.bjoern=guj...@lucene.a
pache.org] Im Auftrag von Avlesh Singh
Gesendet: Montag,
I am not getting any excpetion, but the document is not getting added to
Solr.
Here is the code:
public class ClientSearch {
public SolrServer getSolrServer() throws MalformedURLException{
//the instance can be reused
return new CommonsHttpSolrServer(http://germinait22:8983/solr/core0/;);
}
Where am I going wrong??
I think you forgot to commit after adding beans via the SolrServer.
PS: I am damn sure that you don't intend to create a new instance of
CommonsHttpSolrServer everytime.
Cheers
Avlesh
On Mon, Aug 10, 2009 at 5:55 PM, Ninad Raut hbase.user.ni...@gmail.comwrote:
I am
thanks Avlesh, u saved my day... !! yes I am not going to have a new
instance of server every time... this is just a Proof of concept.
On Mon, Aug 10, 2009 at 6:06 PM, Avlesh Singh avl...@gmail.com wrote:
Where am I going wrong??
I think you forgot to commit after adding beans via the
Right, a SearchComponent wrapper around some of the Solr Cell
capabilities could make this so.
On Aug 9, 2009, at 11:21 AM, Jay Hill wrote:
Solr Cell definitely sounds like it has a place here. But wouldn't
it be
needed for as an extracting component earlier in the process for the
Hi,
I tried to query my text field with a UTF-8 string that was in the
indexed document, but it returned nothing.
e.g.
http://192.168.2.10:8081/solr4/select/?q=%E5%BE%93%E6%9D%A5%E9%80%9A%E3%
82%8Aversion=2.2start=0rows=10indent=on
The result page showed a garbled query string (wrong
Hachmann, Bjoern wrote:
Hello,
we would like to use the highlightingComponent with the mergeContiguous parameter set to true.
We have a field with value: Ökonom Charles Goodhart.
If we search for all three words, they are found correctly: emÖkonom/em emCharles/em emGoodhart/em
But, as I
Your URL suggests you set up your own servlet container - that's
probably the issue.
If you're using tomcat see http://wiki.apache.org/solr/SolrTomcat
Test out your config with example/exampledocs/test_utf8.sh
-Yonik
http://www.lucidimagination.com
On Mon, Aug 10, 2009 at 10:19 AM, Darren
On Mon, Aug 10, 2009 at 4:19 PM, Darren Govonidar...@ontrenet.com wrote:
How do I set UTF-8 encoding so lucene can find the documents since it
supports UTF-8 queries?
This depends on the app server you're using. I'm guessing Tomcat (as
that's where I had the same issue), and you can fix this by
Thanks Shalin and Avlesh for your responses.
Yes we are using Solr for a non-traditional search purpose and the
performance is critical. However it sounds like that sharing the same index
could slow down reading / writing to the index. And access synchronization
is tricky as well.
Therefore, we
I will be giving a free one hour webinar on getting started with
Apache Solr on August 13th, 2009 ~ 11:00 AM PDT / 2:00 PM EDT
You can sign up @
http://www2.eventsvc.com/lucidimagination/081309?trk=WR-AUG2009-AP
I will present and demo:
* Getting started with LucidWorks for Solr
* Getting
Hello Grant,
Will the webinar be recorded and available to download later someplace?
Unfortunately, I can't watch this time.
Thanks,
[]s,
Lucas Frare Teixeira .·.
- lucas...@gmail.com
- blog.lucastex.com
- twitter.com/lucastex
On Mon, Aug 10, 2009 at 12:33 PM, Grant Ingersoll
Hello,
Thank you for your answer, I finally used only a 'qf' parameter in the
dismax requesthandler and it seems that I have now better and more relevant
results.
I just don't understand why a result is mainly boosted by his last update by
default !
Vincent
--
View this message in context:
I actually have an other question...
The 'qf' parameter used in the dismax seems to work with a 'AND' separator.
I have much more results without dixmax. Is there any way to keep the same
amount of document and process the 'qf' ?
My dismax :
requestHandler name=dismax
so in the case someone can help me with the query syntax, the
relational query i would use for this would be something like:
SELECT * FROM videos
WHERE
title LIKE 'family guy'
AND desc LIKE 'stewie%'
AND (
( is_dup = 0 )
OR
( is_dup = 1 AND id NOT IN
(
SELECT id FROM videos
Thank you! I am using Tomcat and will give it a try.
On Mon, 2009-08-10 at 16:31 +0200, Mats Lindh wrote:
On Mon, Aug 10, 2009 at 4:19 PM, Darren Govonidar...@ontrenet.com wrote:
How do I set UTF-8 encoding so lucene can find the documents since it
supports UTF-8 queries?
This depends on
There's some good Wiki pages on the syntax to use for queries, including
nested queries.
But trying traipse through the code to get the big picture is a bit
involved.
A couple example:
Over the past few months I've had several questions about dismax, and why it
was or wasn't doing something a
I just upgraded to Solr 1.4/Lucene 2.9 for something else so I am trying to
see if I can use localParams to exclude certain terms from the facet
counts. I tried the suggested:
facet.field={!terms=foo,bar}cat
actually only shows the facet counts of foo and bar. What I want is to
exclude a value
Hello, I am using the latest Solr4j to index content. When I look at
that content in the Solr Admin web utility I see weird characters like
this:
http://brockwine.com/images/solrglyphs.png
When I look at the text in the MySQL DB those chars appear to just be
plain hyphens. The MySQL table
Hello everybody
I have the following (resumed) schema:
field name=title type=text indexed=true stored=true
multiValued=true/
field name=titleorder type=string indexed=true stored=true
multiValued=true/
field name=contributor type=text indexed=true stored=true
multiValued=true/
Can you please provide your schema details here?
Cheers
Avlesh
On Tue, Aug 11, 2009 at 1:29 AM, Joe Calderon calderon@gmail.comwrote:
so in the case someone can help me with the query syntax, the
relational query i would use for this would be something like:
SELECT * FROM videos
WHERE
Can you please post the fieldType definition for the string field in your
schema.xml?
Cheers
Avlesh
On Tue, Aug 11, 2009 at 9:52 AM, Germán Biozzoli
germanbiozz...@gmail.comwrote:
Hello everybody
I have the following (resumed) schema:
field name=title type=text indexed=true
Hi,
when I do a *:* query I can see the dynamic field as show below:
str name=ne_.*{Germinait=0.7}/str
but when I try to query for the same like ne_Germinait:0.7 I get zero
records.
All the other field which are not dynamic can be easily queried.
Can some one please tell me how to query for
I'm using the solrj CommonsHttpSolrServer to retrieve documents from the index
for update. I therefore also need to retrieve the boost factor as else each
resubmission would reset the boost factor. I just cant figure out how to
retrieve the boost factor.
The boost factor is available in the
Weird that you get to see a field name like ne_.* in the response. I am
afraid that you might be using the field in an incorrect way.
Can you share the field definition please? And a peek into how are you
populating these fields?
Cheers
Avlesh
On Tue, Aug 11, 2009 at 10:29 AM, Ninad Raut
This is the POJO field mapping:
@Field(*_ne)
MapString,String ne = new HashMapString,String();
this is how I set the value:
MapString,String namedEntity = new HashMapString,String();
namedEntity.put(Germinait, 0.7);
ithursDocument.setNe(namedEntity);
server.addBean(ithursDocument);
Ah! I guessed you were using it this way.
I would need to reconfirm this, but there seems to be an inconsistency in
fetching data versus adding data via SolrJ w.r.t dynamic fields.
SOLR-1129https://issues.apache.org/jira/browse/SOLR-1129is
essentially about binding the response into a bean with a
Hi Avlesh,
Can you tell me a work around to this problem?? Till you have this
resolved.:)
Regards,
Ninad.
On Tue, Aug 11, 2009 at 11:16 AM, Avlesh Singh avl...@gmail.com wrote:
Ah! I guessed you were using it this way.
I would need to reconfirm this, but there seems to be an inconsistency in
Well there are multiple ways to do it.
Instead of using your own class (with annotated fields), you can directly
use an instance of SolrInputDocument for each document and call a
SolrServer.add(SolrInputDocument doc). For each SolrInputDocument, you can
use the addField(String name, Object value)
35 matches
Mail list logo