The entity and the select query has no relationship
The entity comes into picture when you do a dataimport
eg:
http://localhost:8983/solr/dataimport?command=full-importenity=user
This is an indexing operation
On Wed, Oct 1, 2008 at 11:26 AM, con [EMAIL PROTECTED] wrote:
Hi guys,
In the URL,
Hi all,
I want to enable the search functionality in my website. Can i use solr
for indexing the website? Is there any option in solr.Pls let me know as
soon as possible.
Thanks in advance
Prabhu.K
--
View this message in context:
Of course I agree.
But while performing a search, if I want to search only the data from USER
table, how can I acheive it.
Suppose I have a user name bob in both USER and MANAGER tables. So when I
perform http://localhost:8983/solr/dataimport?command=full-import , all the
USER and MANAGER values
Hi,
But while performing a search, if I want to search only the data from
USER table, how can I acheive it.
In my app+solr index, we solved this problem by tagging entities with a
rowtype attribute, something like this:
entity name=user query=select 'user' as rowtype, * from USER/entity
That is exactly what my problem is.:handshake:
Thanks for you reply.
But I tried your suggestion:
Updated the data-config.xml as;
entity name=user query=select 'user' as rowtype, * from USER/entity
entity name=manager query=select 'manager' as rowtype, * from
MANAGERS/entity
But when I
Hi Con,
what RDBMS are you using?
This looks like a SQL syntax problem, perhaps the 'literal as column' is not
right for your setup [while it works for my MS SQL Server].
An alternative to supplying the rowtype attribute as a literal in the SQL
clause is to use a Solr DIH Template
Hi and what do you write in str name=dir./str
I wrote that but not sure it works :
str name=exe./data/solr/book/bin/snapshooter/str
str name=dir./str
But I've some error, it might come from that.
When you use this way, doest it write in your log file, not me:
BTW, You will also need to configure your schema.xml to index [and store?] the
rowtype attribute:
field name=rowtype type=string indexed=true stored=true
required=true /
Or alternatively change rowtype to be say rowtype_s to take advantage of Solr's
dynamic field definitions.
Otis Gospodnetic wrote:
I haven't used the German analyzer (either Snowball or the one we have in
Lucene's contrib), but have you checked if that does the trick of keeping
words together?
I'm not sure how this can work out with words that are space separated,
especially since we use a
Hello all,
Sorry if this question sound stupid ! :)
Instead of mapping or grouping the Synonym terms in the Synonym.txt file... is
it possible to to define a field in the schema ( for the Synonyms) and index
them then
at query, the index directory is used for the purpose of
Hi guys,
Do you think it works better automaticly by solr after commit, fire
snapshooter or start cron job.
Thanks,
hossman_lucene wrote:
: I want to run 3 to 4 instances of solr on different machines. the
other
: servers will be replicatin the index from the single server.
: how is
Hello,
I have a lucene CustomScoreQuery which I am wanting to execute with a lucene
Filter. However the getDocListAndSet API provided by the SolrIndexSearcher
doesn't seem to allow Filters to be used along with Queries. Instead it
seems that the Filters must be first converted to a DocSet.
Can any one throw some light into the issue ??
On Fri, Sep 26, 2008 at 11:48 AM, Jagadish Rath [EMAIL PROTECTED] wrote:
Hi
I am running two solr instances on the same machine using the same data
directory. one on port 8982 and the other on 8984.
- 1st one *only accepts commits*
Hi guys,
Just to know how come, Ive planned cron job every five minute to hit
*/5 * * * * /usr/bin/wget -q --output-document=/home/tot.txt
http://solr-test.adm.books.com:8180/solr/books/dataimport?command=delta-importentity=b
which works,
But now I just restart tomcat and it stay stuck on
dot-slash means run command located in this directory, you do not
add dot and slash when you specify path (absolute or relative).
Wiadomość napisana w dniu 2008-10-01, o godz. 10:10, przez sunnyfr:
Hi and what do you write in str name=dir./str
I wrote that but not sure it works :
str
Hi,
so, what should i write : that ?
str name=exe/data/solr/book/bin/snapshooter/str
str name=dir./str
thanks a lot for your answer.
Jarek Zgoda-7 wrote:
dot-slash means run command located in this directory, you do not
add dot and slash when you specify path (absolute or relative).
Yes exe is correct. Put /data/solr/book/bin in the dir also.
On Wed, Oct 1, 2008 at 2:15 PM, sunnyfr [EMAIL PROTECTED] wrote:
Hi,
so, what should i write : that ?
str name=exe/data/solr/book/bin/snapshooter/str
str name=dir./str
thanks a lot for your answer.
Jarek Zgoda-7 wrote:
but why Sunny Bassan said :
Sunny Bassan wrote:
using ./snapshooter instead of snapshooter, worked like a charm. Its
the little ones you gotta watch out for.
Shalin Shekhar Mangar wrote:
Yes exe is correct. Put /data/solr/book/bin in the dir also.
On Wed, Oct 1, 2008 at 2:15 PM, sunnyfr
This is what works for me on Ubuntu 8.04 on the postCommit and postOptimize
section:
1. Make sure the user running solr has read and execute permissions on
snapshooter script
2. Specify absolute path (without any dots) to the snapshooter in the exe
section
3. Specify absolute path (without any
I can confirm - this setting works for me too.
Wiadomość napisana w dniu 2008-10-01, o godz. 11:09, przez Shalin
Shekhar Mangar:
This is what works for me on Ubuntu 8.04 on the postCommit and
postOptimize
section:
1. Make sure the user running solr has read and execute permissions on
Hi everybody,
I don't know why in my logs I've this error:
Could not start SOLR. Check solr/home property java.lang.RuntimeException:
Can't find resource 'solrconfig.xml' in classpath or 'solr/conf/',
Help would be more than welcome.
Cheers,
--
View this message in context:
Thanks guys, I will try,
Jarek Zgoda-7 wrote:
I can confirm - this setting works for me too.
Wiadomość napisana w dniu 2008-10-01, o godz. 11:09, przez Shalin
Shekhar Mangar:
This is what works for me on Ubuntu 8.04 on the postCommit and
postOptimize
section:
1. Make sure the
To be clear here, facet.query does not filter the result set at all.
It provides a count for how many documents in the current result set
(determined by q/fq parameters, oh, and bq sometimes too, doh! :)
match that query.
Erik
On Sep 30, 2008, at 9:42 PM, Simon Hu wrote:
not
And finally its almost fine.. :jumping: :jumping: :jumping:
Thanks Burnell.
My tables are in Oracle DB.
So based on your suggestions the changes made are:
1) In the data-config.xml,
entity name=user transformer=TemplateTransformer query=select *
from USER
field column=rowtype
I guess the both entity is an inner entity. Only the root level entities
contribute solr documents, the inner ones provide additional fields. So
don't specify the rowtype and you will get both users and managers.
Solr search is based on documents and not on entities. Better not to confuse
them.
This will be fine if there is only one both entity. It is quite common that
there will be more than one both like queries. That is queries that
connect more than one table. In such a case how can I distinguish one
particular entity at a time.
Solr search is based on documents and not on
On Tue, 30 Sep 2008 11:43:57 -0700 (PDT)
Chris Hostetter [EMAIL PROTECTED] wrote:
: That's why I was wondering how Dismax breaks it all apart. It makes
sense...I : suppose what I'd like to have is a way to tell dismax which
fields NOT to : tokenize the input for. For these fields, it would
Hi,
I'm just starting with the spellchecker component provided by solr - it
is really cool!
Now I'm thinking about the source-field in the spellchecker (spell):
how should fields be analyzed during indexing, and how should the
queryAnalyzerFieldType be configured.
If I have brands like e.g.
Geoffrey Young wrote:
Chris Hostetter wrote:
: I have a well-formed xml file, suitable for POSTting to solr. that
: works just fine. it's very large, though, and using curl in production
: is so very lame. is there a very simple config that will let solr just
: slurp up the file via
Have you looked at Nutch? It's built on top of Lucene and might
be a better fit.
But you simply must give more details about what your
requirements to get a meaningful answer. Imagine *you* were
reading your e-mail without knowing anything except
the information contained in the message. How
Dear Lucene and Solr users -
I'm presenting Lucene/Solr Case Studies at ApacheCon in a month: http://us.apachecon.com/c/acus2008/sessions/41
I would like to feature implementations by YOU. The thing is, my
slides are due this Friday, so time is short to collect this info. If
you have a
Hi,
yes I've got the stack trace giving me the beginning of an explanation.
One of the QueryParsers I use in my Query parser plugin is a
multifiedQueryParser and it needs a fields aware Analyzer, which I get
from the schema like this:
req.getSchema().getQueryAnalyzer();
I think it's in
Hm,
No, at this point in time synonyms have to be loaded from the text file.
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
- Original Message
From: dudes dudes [EMAIL PROTECTED]
To: solr-user@lucene.apache.org
Sent: Wednesday, October 1, 2008 4:24:33 AM
Subject:
If you use cron, you should use the new -c option of snapshooter which
only takes a snapshot where there have been changes. My personal preference
is to use postCommit and postOptimize event listeners.
Bill
On Wed, Oct 1, 2008 at 4:28 AM, sunnyfr [EMAIL PROTECTED] wrote:
Hi guys,
Do you
Hi everybody,
I've a big error which I can't fixe up:
Could not start SOLR. Check solr/home property java.lang.RuntimeException:
Can't find resource 'solrconfig.xml' in classpath or 'solr/conf/', cwd=/
^Iat
org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:168)
I've
thanks
Date: Wed, 1 Oct 2008 05:55:33 -0700
From: [EMAIL PROTECTED]
Subject: Re: Synonym questions
To: solr-user@lucene.apache.org
Hm,
No, at this point in time synonyms have to be loaded from the text file.
Otis
--
Sematext --
Hi,
I want to index a list of keywords.
When I search k1_en:men, I find a lot of documents like that :
DocA :
(k1_en = man;men;Men;business... termFreq=2)
DocB :
(k1_en = man;Men;business... termFreq=1)
DocC :
...
DocD :
...
DocE :
...
But I don't want to have a different termFreq for DocA
You are right. I got it confused with fq (you can tell I am relative new to
solr :-) ). Thanks for the clarification.
Anyway, facet.query will not do the trick. I wanted to do a facet count on
all values starting with more than one prefix in the same field. Doing
something like:
Oct 1 16:45:10 solr-test jsvc.exec[23757]: eaa main
Oct 1 16:45:10 solr-test jsvc.exec[23757]: Oct 1, 2008 4:45:10 PM
org.apache.solr.servlet.SolrServlet init INFO: SolrServlet.init()
Oct 1 16:45:10 solr-test jsvc.exec[23757]: Oct 1, 2008 4:45:10 PM
org.apache.solr.servlet.SolrServlet init
Hi,
Note that RemoveDuplicatesTokenFilterFactory filters out any tokens which are
at the same logical position in the tokenstream as a previous token with the
same text.
So if you have men in black are real men then
RemoveDuplicatesTokenFilterFactory will not remove duplicate men.
This may
Hi,
I think:
Can't find resource 'solrconfig.xml' in classpath or 'solr/conf/'
is a major clue no? Do you actually have a solrconfig.xml and how are
you starting solr?
Regards
Brendan
On Oct 1, 2008, at 11:11 AM, sunnyfr wrote:
Oct 1 16:45:10 solr-test jsvc.exec[23757]: eaa main
Oct
My feeling is that real-time search first has to make it into Lucene. Once
that is done we can add support for it in Solr.
My feeling is also that there are 2 different and parallel efforts going on for
adding real-time search to Lucene, but that's a topic for the Lucene dev ML.
Otis
--
I have solrconfig.xml in my folder /data/solr/books/conf/
and I've multicore.xml in /data/solr/
?xml version=1.0 encoding=UTF-8 ?
multicore adminPath=/admin/multicore persistent=true sharedLib=lib
core name=video instanceDir=books default=true /
core name=group instanceDir=group /
core
Hi,
That setup should work and there should be no index corruption. I do not fully
follow why you are doing this and have a feeling you are not really solving the
real problem. Why is this better than the typical Solr master/slave setup? I
think all you did is skip the data copying step.
Yes this may be my problem,
But is there any solution to have only one men keyword indexed when i''ve
got something like this :
1 - k1_en = men;business;Men
or :
2 - k1_en = man,business,men
or :
3 - k1_en = Man,men,business,Men,man
...
Thx in advance,
On Wed, Oct 1, 2008 at 5:12 PM, Otis
Otherwise I've my solr.war in my foler /data/solr/
I've no idea anymore ... Any idea Brendan?
sunnyfr wrote:
I have solrconfig.xml in my folder /data/solr/books/conf/
and I've multicore.xml in /data/solr/
?xml version=1.0 encoding=UTF-8 ?
multicore adminPath=/admin/multicore
Ok. Can we run two solr instances(using the same data directory) one for
commits and the other for queries on the same machine ? Are there any known
issues for this ?
On Fri, Sep 26, 2008 at 11:48 AM, Jagadish Rath [EMAIL PROTECTED] wrote:
Hi
I am running two solr instances on the same
Hi Sunny,
Sorry, I've not use multicores with tomcat yet. However, I seem to
remember that multicore.xml changed it's name to solr.xml. I take it
you're using solr 1.3 or are you using a nightly build of some sort?
Brendan
On Oct 1, 2008, at 11:46 AM, sunnyfr wrote:
Otherwise I've my
Hi All,
I am getting an CorruptIndexException while trying to open Solr
1.3 generated index using Luke.
The Index as is working fine with.
I am using luke - 0.8.1 version.
Any Idea if anyone has encountered this issue
Thanks
Kalyan
It's wierd because earlier in the code it looks like it does found it :
Oct 1 18:00:36 solr-test jsvc.exec[5550]: Oct 1, 2008 6:00:36 PM
org.apache.solr.core.SolrResourceLoader init INFO: Solr home set to
'/data/solr/group/'
Oct 1 18:00:36 solr-test jsvc.exec[5550]: Oct 1, 2008 6:00:36 PM
Thanks Brendan,
I use solr 1.2 ... I will update to solr 1.3 soon .. I tried to rename it
... but still .
help i need somebody .. heppp LOL
Thanks Brendan
Brendan Grainger-2 wrote:
Hi Sunny,
Sorry, I've not use multicores with tomcat yet. However, I seem to
remember that
Where is this log from? Not from your original stacktrace clearly. So
are you getting a different error now? Also, which version of solr are
you using, 1.3 or a nightly build?
On Oct 1, 2008, at 12:07 PM, sunnyfr wrote:
It's wierd because earlier in the code it looks like it does found
this log from syslog ... before the error that I sent to you.
:(
Brendan Grainger-2 wrote:
Where is this log from? Not from your original stacktrace clearly. So
are you getting a different error now? Also, which version of solr are
you using, 1.3 or a nightly build?
On Oct 1,
Sorry Sunny,
Will have to punt on this one. If I were you I'd try using 1.3. To be
honest, if I remember correctly, 1.2 didn't have multicore support.
Regards
Brendan
On Oct 1, 2008, at 12:20 PM, sunnyfr wrote:
Thanks Brendan,
I use solr 1.2 ... I will update to solr 1.3 soon .. I
It use to work .. I updated it with the patch to make it works with multicore
and it worked perfectly three days ago before this snapshooter bug ...
it's like if I missed jar files somewhere or ...
Brendan Grainger-2 wrote:
Sorry Sunny,
Will have to punt on this one. If I were you I'd
Hi All,
I'm not sure if there is a way to do this. I have a requirement to display
exactly 20 characters before and 20 characters after the highlighted term.
Thanks,
Susan
--
View this message in context:
hymm -- i've replied to this three times now... but it does not appear
the list revieved it...
http://www.nabble.com/Any-idea-I%27m-lost--Thanks-to19762598.html
(now i'm trying from a different client)
Have you tried solr.xml rather then multicore.xml?
before 1.3 was released, the file
You will need to use the lucene jars shipped with Solr. The ones the Luke
uses are an older version of Lucene.
On Wed, Oct 1, 2008 at 9:27 PM, Manepalli, Kalyan
[EMAIL PROTECTED] wrote:
Hi All,
I am getting an CorruptIndexException while trying to open Solr
1.3 generated index using
Hey,
I just want to copy over my indexes from my production server running
1.2 to another test server running 1.3. Since my Index are live I can't
just stop the it. I also have 5 GB of indexes so I do not know how long
I will need to take it down. All option I read backup the index
On Wed, Oct 1, 2008 at 10:28 PM, Michael Tedesco [EMAIL PROTECTED]wrote:
I just want to copy over my indexes from my production server running 1.2
to another test server running 1.3. Since my Index are live I can't just
stop the it. I also have 5 GB of indexes so I do not know how long I
Ok, I think I jumped the gun here. I'm not sure on this so I'll let someone
who knows more comment on this.
On Wed, Oct 1, 2008 at 11:03 PM, Shalin Shekhar Mangar
[EMAIL PROTECTED] wrote:
On Wed, Oct 1, 2008 at 10:28 PM, Michael Tedesco [EMAIL PROTECTED]wrote:
I just want to copy over my
Backup or snapshot taken by hard links are save to copy since once Lucene
creates an index file, it will not be modified.
From the 1.3.0 release notes:
The Porter snowball based stemmers in Lucene were updated (LUCENE-1142),
and are not guaranteed to be backward compatible at the index level
In each of your examples (is each one a documen?) I see only 1 men instance,
so men term frequency should be 1 for that document.
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
- Original Message
From: KLessou [EMAIL PROTECTED]
To: solr-user@lucene.apache.org
You should be able to run like that. Most likely nobody can answer your last
question with certainty because it's likely very few people, if any, are
running Solr in this type of a setup.
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
- Original Message
From:
In many search engines, that would be a guaranteed crash. A postings
list is read into memory, then replaced on disk, so now the engine
has an inconsistent index.
Even if it works, don't be surprised if it breaks in a later release.
The snapshot system exists precisely to do this in a safe
Yes I tried to change the name manually but it didn't help, nothing
changed.
we spoke about the file in data/solr/ this directory which contain solr.war.
Yes I did try !!
ryantxu wrote:
hymm -- i've replied to this three times now... but it does not appear
the list revieved it...
Hi!
We are having this weird issue when killing a running instance of Solr and
then trying to
restart it right away.
We just switched from one machine to another and on the old one everything
works fine.
When turning off Solr you can restart it right away with no problem. But on
the new one
the
David,
Doable, you just need to flatten your models, for example:
field name=colourred/field
field name=typeminivan/field
field name=typecar/field
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
- Original Message
From: Choi, David [EMAIL PROTECTED]
To:
Erik,
While it's sitting there try kill -HUP the java process a few times and see it
any threads are blocking and where.
The 2-minute pause smells like a network timeout of some kind.
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
- Original Message
From: Erik
Or encode the hierarcy in the fieldnames.
field name=car.colourred/field
field name=car.typeminivan/field
wunder
On 10/1/08 2:18 PM, Otis Gospodnetic [EMAIL PROTECTED] wrote:
David,
Doable, you just need to flatten your models, for example:
field name=colourred/field
field
Hi Otis!
Thanks for the reply, tried it and this is the output:
[EMAIL PROTECTED] ~]$ startsolr.sh
2008-10-01 14:26:47.771::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
2008-10-01 14:26:47.904::INFO: jetty-6.1.3
2008-10-01 14:27:28.086::INFO: Shutdown hook executing
2008-10-01
Thanks for the suggestions!
- David
-Original Message-
From: Walter Underwood [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2008 2:31 PM
To: solr-user@lucene.apache.org
Subject: Re: Indexing complex types into Solr
Or encode the hierarcy in the fieldnames.
field
Hi Con,
I'm not sure if you need the 'both' entity.
For example, perhaps the following query will work for you to retrieve both?
http://localhost:8983/solr/select/?q=bob AND (rowtype:user OR
rowtype:manager)version=2.2start=0rows=10indent=on
-Original Message-
From: con
Sorry, I gave you the wrong kill signal. It's kill -QUIT pid here.
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
- Original Message
From: Erik Holstad [EMAIL PROTECTED]
To: solr-user@lucene.apache.org
Sent: Wednesday, October 1, 2008 5:48:04 PM
Subject: Re:
We send it a normal kill, wait 30 seconds, then use a kill -9. This means
we tell it to shut down, give it thirty seconds to do whatever it wants to,
then forcefully kill it. I'm not sure we have ever seen the first 'normal
kill' work, but we do it anyway.
Lance
-Original Message-
From:
75 matches
Mail list logo