Re: Doubt about index size

2010-11-12 Thread Claudio Devecchi
Hi Tom, thanks for your explanation,

Do you recommend the index continues this way? Or can I configure it to make
optmize automatically?

tks

On Fri, Nov 12, 2010 at 2:39 PM, Burton-West, Tom wrote:

> Hi Claudio,
>
> What's happening when you re-index the documents is that Solr/Lucene
> implements an update as a delete plus a new index.  Because of the nature of
> inverted indexes, deleting documents requires a rewrite of the entire index.
> In order to avoid rewriting the entire index each time one document is
> deleted, deletes are implemented as a list of deleted  internal lucene ids.
> Documents aren't actually removed from the indexes until the index segment
> is merged or an optimize occurs.
>
> maxDoc's is the total number of documents indexed without taking into
> consideration that some of them are marked as deleted
> numDocs is the actual number of undeleted documents
>
> If you run an optimize the index will be rewritten, the index size will go
> down  and numDocs will equal maxDocs
>
> Tom Burton-West
>
> -Original Message-
> From: Claudio Devecchi [mailto:cdevec...@gmail.com]
> Sent: Friday, November 12, 2010 10:50 AM
> To: Lista Solr
> Subject: Doubt about index size
>
> Hi everybody,
>
> I'm doing some indexing testing on solr 1.4.1 and I'm not understanding one
> thing, let me try to explain.
>
> I have 1.2 million xml files and I'm indexing then, when I do it for first
> time my index size is around 3 GB and in my statistics on
> http://localhost:8983/solr/admin/stats.jsp I have two entries that is:
>
> numDocs : 1120171
> maxDoc : 1120171
>
> Until here is all right, but if I make a index update reindexing all the
> same 1120171 documents I have the stats bellow:
>
> numDocs : 1120171
> maxDoc : 2240342
>
> ... and my index size goes around 6GB.
>
> Why this happen? What happens on index size if I have the same number of
> searcheable docs?
>
> Somebody knows?
>
> Tks
>



-- 
Claudio Devecchi
flickr.com/cdevecchi


Doubt about index size

2010-11-12 Thread Claudio Devecchi
Hi everybody,

I'm doing some indexing testing on solr 1.4.1 and I'm not understanding one
thing, let me try to explain.

I have 1.2 million xml files and I'm indexing then, when I do it for first
time my index size is around 3 GB and in my statistics on
http://localhost:8983/solr/admin/stats.jsp I have two entries that is:

numDocs : 1120171
maxDoc : 1120171

Until here is all right, but if I make a index update reindexing all the
same 1120171 documents I have the stats bellow:

numDocs : 1120171
maxDoc : 2240342

... and my index size goes around 6GB.

Why this happen? What happens on index size if I have the same number of
searcheable docs?

Somebody knows?

Tks


Re: Search with accent

2010-11-10 Thread Claudio Devecchi
thx so much tomas, I'll test now.



On Wed, Nov 10, 2010 at 6:47 PM, Tomas Fernandez Lobbe <
tomasflo...@yahoo.com.ar> wrote:

> You have to modify the field type you are using in your schema.xml file.
> This is
> the "text" field type of Solr 1.4.1 exmple with this filter added:
>
> positionIncrementGap="100">
>  
>
>
>ignoreCase="true"
>words="stopwords.txt"
>enablePositionIncrements="true"
>/>
> generateWordParts="1"
> generateNumberParts="1" catenateWords="1" catenateNumbers="1"
> catenateAll="0"
> splitOnCaseChange="1"/>
>
> protected="protwords.txt"/>
>  
>  
>
>
> ignoreCase="true" expand="true"/>
>ignoreCase="true"
>words="stopwords.txt"
>enablePositionIncrements="true"
>    />
> generateWordParts="1"
> generateNumberParts="1" catenateWords="0" catenateNumbers="0"
> catenateAll="0"
> splitOnCaseChange="1"/>
>
> protected="protwords.txt"/>
>  
>
>
>
>
>
>
>
>
> 
> De: Claudio Devecchi 
> Para: solr-user@lucene.apache.org
> Enviado: miércoles, 10 de noviembre, 2010 17:44:01
> Asunto: Re: Search with accent
>
> Ok tks,
>
> I'm new with solr, my doubt is how can I enable theses feature. Or these
> feature is already working by default?
>
> Is this something to config on my schema.xml?
>
> Tks!!
>
>
> On Wed, Nov 10, 2010 at 6:40 PM, Tomas Fernandez Lobbe <
> tomasflo...@yahoo.com.ar> wrote:
>
> > That's what the ASCIIFoldingFilter does, it removes the accents, that's
> why
> > you
> > have to add it to the query analisis chain and to the index analysis
> chain,
> > to
> > search the same way you index.
> >
> >
> >
> > You can see how it works from the Analysis page on Solr Admin.
> >
> >
> >
> >
> >
> > 
> > De: Savvas-Andreas Moysidis 
> > Para: solr-user@lucene.apache.org
> > Enviado: miércoles, 10 de noviembre, 2010 17:27:24
> > Asunto: Re: Search with accent
> >
> > have you tried using a TokenFilter which removes accents both at
> > indexing and searching time? If you index terms without accents and
> > search the same
> > way you should be able to find all documents as you require.
> >
> >
> >
> > On 10 November 2010 20:25, Tomas Fernandez Lobbe
> > wrote:
> >
> > > It looks like ISOLatin1AccentFilter is deprecated on Solr 1.4.1, If you
> > are
> > > on
> > > that version, you should use the ASCIIFoldingFilter instead.
> > >
> > > Like with any other filter, to use it, you have to add the filter
> factory
> > > to the
> > > analysis chain of the field type you are using:
> > >
> > > 
> > >
> > > Make sure you add it to the query and index analysis chain, otherwise
> > > you'll
> > > have extrage results.
> > >
> > > You'll have to perform a full reindex.
> > >
> > > Tomás
> > >
> > >
> > >
> > >
> > > 
> > > De: Claudio Devecchi 
> > > Para: solr-user@lucene.apache.org
> > > Enviado: miércoles, 10 de noviembre, 2010 17:08:06
> > > Asunto: Re: Search with accent
> > >
> > > Tomas,
> > >
> > > Let me try to explain better.
> > >
> > > For example.
> > >
> > > - I have 10 documents, where 7 have the word pereque (without accent)
> and
> > 3
> > > have the word perequê (with accent)
> > >
> > > When I do a search pereque, solr is returning just 7, and when I do a
> > > search
> > > perequê solr is returning 3.
> > >
> > > But for me, these words are the same, and when I do some search for
> > perequê
> > > or pereque, it should show me 10 results.
> > >
> > >
> > > About the ISOLatin you told, do you know how can I enable it?
> > >
> > > tks,
> > > Claudio
> > >
> > > On Wed, Nov 1

Re: Search with accent

2010-11-10 Thread Claudio Devecchi
Ok tks,

I'm new with solr, my doubt is how can I enable theses feature. Or these
feature is already working by default?

Is this something to config on my schema.xml?

Tks!!


On Wed, Nov 10, 2010 at 6:40 PM, Tomas Fernandez Lobbe <
tomasflo...@yahoo.com.ar> wrote:

> That's what the ASCIIFoldingFilter does, it removes the accents, that's why
> you
> have to add it to the query analisis chain and to the index analysis chain,
> to
> search the same way you index.
>
>
>
> You can see how it works from the Analysis page on Solr Admin.
>
>
>
>
>
> 
> De: Savvas-Andreas Moysidis 
> Para: solr-user@lucene.apache.org
> Enviado: miércoles, 10 de noviembre, 2010 17:27:24
> Asunto: Re: Search with accent
>
> have you tried using a TokenFilter which removes accents both at
> indexing and searching time? If you index terms without accents and
> search the same
> way you should be able to find all documents as you require.
>
>
>
> On 10 November 2010 20:25, Tomas Fernandez Lobbe
> wrote:
>
> > It looks like ISOLatin1AccentFilter is deprecated on Solr 1.4.1, If you
> are
> > on
> > that version, you should use the ASCIIFoldingFilter instead.
> >
> > Like with any other filter, to use it, you have to add the filter factory
> > to the
> > analysis chain of the field type you are using:
> >
> > 
> >
> > Make sure you add it to the query and index analysis chain, otherwise
> > you'll
> > have extrage results.
> >
> > You'll have to perform a full reindex.
> >
> > Tomás
> >
> >
> >
> >
> > 
> > De: Claudio Devecchi 
> > Para: solr-user@lucene.apache.org
> > Enviado: miércoles, 10 de noviembre, 2010 17:08:06
> > Asunto: Re: Search with accent
> >
> > Tomas,
> >
> > Let me try to explain better.
> >
> > For example.
> >
> > - I have 10 documents, where 7 have the word pereque (without accent) and
> 3
> > have the word perequê (with accent)
> >
> > When I do a search pereque, solr is returning just 7, and when I do a
> > search
> > perequê solr is returning 3.
> >
> > But for me, these words are the same, and when I do some search for
> perequê
> > or pereque, it should show me 10 results.
> >
> >
> > About the ISOLatin you told, do you know how can I enable it?
> >
> > tks,
> > Claudio
> >
> > On Wed, Nov 10, 2010 at 5:00 PM, Tomas Fernandez Lobbe <
> > tomasflo...@yahoo.com.ar> wrote:
> >
> > > I don't understand, when the user search for perequê you want the
> results
> > > for
> > > perequê and pereque?
> > >
> > > If thats the case, any field type with ISOLatin1AccentFilterFactory
> > should
> > > work.
> > > The accent should be removed at index time and at query time (Make sure
> > the
> > > filter is being applied on both cases).
> > >
> > > Tomás
> > >
> > >
> > >
> > >
> > >
> > > 
> > > De: Claudio Devecchi 
> > > Para: Lista Solr 
> > > Enviado: miércoles, 10 de noviembre, 2010 15:16:24
> > > Asunto: Search with accent
> > >
> > > Hi all,
> > >
> > > Somebody knows how can I config my solr to make searches with and
> without
> > > accents?
> > >
> > > for example:
> > >
> > > pereque and perequê
> > >
> > >
> > > When I do it I need the same result, but its not working.
> > >
> > > tks
> > > --
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Claudio Devecchi
> > flickr.com/cdevecchi
> >
> >
> >
> >
>
>
>
>
>



-- 
Claudio Devecchi
flickr.com/cdevecchi


Re: Search with accent

2010-11-10 Thread Claudio Devecchi
Hi Tomas,

Do you have some example to put in schema.xml?

How can I use thes filter class?

Tks

On Wed, Nov 10, 2010 at 6:25 PM, Tomas Fernandez Lobbe <
tomasflo...@yahoo.com.ar> wrote:

> It looks like ISOLatin1AccentFilter is deprecated on Solr 1.4.1, If you are
> on
> that version, you should use the ASCIIFoldingFilter instead.
>
> Like with any other filter, to use it, you have to add the filter factory
> to the
> analysis chain of the field type you are using:
>
> 
>
> Make sure you add it to the query and index analysis chain, otherwise
> you'll
> have extrage results.
>
> You'll have to perform a full reindex.
>
> Tomás
>
>
>
>
> 
> De: Claudio Devecchi 
> Para: solr-user@lucene.apache.org
> Enviado: miércoles, 10 de noviembre, 2010 17:08:06
> Asunto: Re: Search with accent
>
> Tomas,
>
> Let me try to explain better.
>
> For example.
>
> - I have 10 documents, where 7 have the word pereque (without accent) and 3
> have the word perequê (with accent)
>
> When I do a search pereque, solr is returning just 7, and when I do a
> search
> perequê solr is returning 3.
>
> But for me, these words are the same, and when I do some search for perequê
> or pereque, it should show me 10 results.
>
>
> About the ISOLatin you told, do you know how can I enable it?
>
> tks,
> Claudio
>
> On Wed, Nov 10, 2010 at 5:00 PM, Tomas Fernandez Lobbe <
> tomasflo...@yahoo.com.ar> wrote:
>
> > I don't understand, when the user search for perequê you want the results
> > for
> > perequê and pereque?
> >
> > If thats the case, any field type with ISOLatin1AccentFilterFactory
> should
> > work.
> > The accent should be removed at index time and at query time (Make sure
> the
> > filter is being applied on both cases).
> >
> > Tomás
> >
> >
> >
> >
> >
> > 
> > De: Claudio Devecchi 
> > Para: Lista Solr 
> > Enviado: miércoles, 10 de noviembre, 2010 15:16:24
> > Asunto: Search with accent
> >
> > Hi all,
> >
> > Somebody knows how can I config my solr to make searches with and without
> > accents?
> >
> > for example:
> >
> > pereque and perequê
> >
> >
> > When I do it I need the same result, but its not working.
> >
> > tks
> > --
> >
> >
> >
> >
> >
>
>
>
> --
> Claudio Devecchi
> flickr.com/cdevecchi
>
>
>
>
>



-- 
Claudio Devecchi
flickr.com/cdevecchi


Re: Search with accent

2010-11-10 Thread Claudio Devecchi
Tomas,

Let me try to explain better.

For example.

- I have 10 documents, where 7 have the word pereque (without accent) and 3
have the word perequê (with accent)

When I do a search pereque, solr is returning just 7, and when I do a search
perequê solr is returning 3.

But for me, these words are the same, and when I do some search for perequê
or pereque, it should show me 10 results.


About the ISOLatin you told, do you know how can I enable it?

tks,
Claudio

On Wed, Nov 10, 2010 at 5:00 PM, Tomas Fernandez Lobbe <
tomasflo...@yahoo.com.ar> wrote:

> I don't understand, when the user search for perequê you want the results
> for
> perequê and pereque?
>
> If thats the case, any field type with ISOLatin1AccentFilterFactory should
> work.
> The accent should be removed at index time and at query time (Make sure the
> filter is being applied on both cases).
>
> Tomás
>
>
>
>
>
> 
> De: Claudio Devecchi 
> Para: Lista Solr 
> Enviado: miércoles, 10 de noviembre, 2010 15:16:24
> Asunto: Search with accent
>
> Hi all,
>
> Somebody knows how can I config my solr to make searches with and without
> accents?
>
> for example:
>
> pereque and perequê
>
>
> When I do it I need the same result, but its not working.
>
> tks
> --
>
>
>
>
>



-- 
Claudio Devecchi
flickr.com/cdevecchi


Search with accent

2010-11-10 Thread Claudio Devecchi
Hi all,

Somebody knows how can I config my solr to make searches with and without
accents?

for example:

pereque and perequê


When I do it I need the same result, but its not working.

tks
--


Solr + Zookeeper Integration

2010-10-29 Thread Claudio Devecchi
Hi people,

I'm trying to configure a little solr cluster but I need to shard the
documents.

I configured my solr with core0 (/opt/solr/core0) and installer the
zookeeper (/opt/zookeeper).

1. On my solrconfig.xml I added the lines below:


host1:2181
http://host1:8983/solr/core0
5000
/solr_domain/nodes
 


2. On my /opt/zookeeper/conf/zoo.cfg I configured this way:

tickTime=2000
dataDir=/var/zookeeper
clientPort=2181

And start it with zkServer.sh


After start the zookeeper my dir "/solr_domain/nodes" continues empty,
following the documentations I didn't find some extra thing to do, but
nothing is working.

SOmebody could tell me what is missing or wrong please?


Thanks


Re: Solr Fuzzy

2010-10-14 Thread Claudio Devecchi
tks moysidis

On Thu, Oct 14, 2010 at 3:45 PM, Savvas-Andreas Moysidis <
savvas.andreas.moysi...@googlemail.com> wrote:

> Hi,
>
> yes, Solr does support fuzzy queries by using the Levenstein Distance
> algorithm:
> http://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance
>
> You can specify a fuzzy query by adding a tilde (~) symbol at the end of
> your query as in title: Solr~
> You can even specify a proximity threshold in order to achieve a less or
> more strict fuzzy match as in title:Solr~0.8 with the threshold being a
> number between 0 and 1, 1 being the most strict..
>
> HTH
>
> On 14 October 2010 19:26, Claudio Devecchi  wrote:
>
> > Hi people,
> >
> > Somebody knows if solr have the fuzzy funcionality?
> >
> > Tks
> >
> > --
> > Claudio Devecchi
> >
>



-- 
Claudio Devecchi
flickr.com/cdevecchi


Solr Fuzzy

2010-10-14 Thread Claudio Devecchi
Hi people,

Somebody knows if solr have the fuzzy funcionality?

Tks

-- 
Claudio Devecchi


Re: Deleting Documents with null fields by query

2010-10-11 Thread Claudio Devecchi
yes..

dont work, doing it I erase all the content. :(

or, another thing that will help me is to make a query that doesnt bring the
null one.

tks

On Mon, Oct 11, 2010 at 5:27 PM, Erick Erickson wrote:

> Have you tried something like:
>
> '*:* AND
> -content:[* TO *]
>
>
> On Mon, Oct 11, 2010 at 4:01 PM, Claudio Devecchi  >wrote:
>
> > Hi everybody,
> >
> > I'm trying to delete by query some documents with null content (this
> > happened because I crawled my intranet and somethings came null)
> >
> > When I try this works fine (I'm deleting from my solr index every
> document
> > that dont have wiki on the field content)
> > curl http://localhost:8983/solr/update?commit=true -H 'Content-Type:
> > text/xml' --data-binary '*:* AND
> > -content:wiki'
> >
> > Now I need to make a query that delete every document that have the field
> > content null.
> >
> > Somebody could help me pls?
> >
> > Tks
> > CLaudio
> >
>



-- 
Claudio Devecchi
flickr.com/cdevecchi


Deleting Documents with null fields by query

2010-10-11 Thread Claudio Devecchi
Hi everybody,

I'm trying to delete by query some documents with null content (this
happened because I crawled my intranet and somethings came null)

When I try this works fine (I'm deleting from my solr index every document
that dont have wiki on the field content)
curl http://localhost:8983/solr/update?commit=true -H 'Content-Type:
text/xml' --data-binary '*:* AND
-content:wiki'

Now I need to make a query that delete every document that have the field
content null.

Somebody could help me pls?

Tks
CLaudio


Re: Search Interface

2010-10-02 Thread Claudio Devecchi
tks guys!! working now..

=)

On Tue, Sep 28, 2010 at 5:39 PM, Lance Norskog  wrote:

> There is already a simple Velocity app. Just hit
> http://localhost:8983/solr/browse.
> You can configure some handy parameters to make walkable facets in
> solrconfig.xml.
>
> On Tue, Sep 28, 2010 at 5:23 AM, Antonio Calo' 
> wrote:
> >  Hi
> >
> > You could try to use the Velocity framework to build GUIs in a  quick and
> > efficent manner.
> >
> > Solr come with a velocity handler already integrated that could be the
> best
> > solution in your case:
> >
> > http://wiki.apache.org/solr/VelocityResponseWriter
> >
> > Also take these hints on the same topic:
> >
> http://www.lucidimagination.com/blog/2009/11/04/solritas-solr-1-4s-hidden-gem/
> >
> > there is also a webinar about rapid prototyping with solr:
> >
> >
> http://www.slideshare.net/erikhatcher/rapid-prototyping-with-solr-4312681
> >
> > Hope this help
> >
> > Antonio
> >
> >
> > Il 28/09/2010 4.35, Claudio Devecchi ha scritto:
> >>
> >> Hi everybody,
> >>
> >> I`m implementing my first solr engine for conceptual tests, I`m crawling
> >> my
> >> wiki intranet to make some searches, the engine is working fine already,
> >> but
> >> I need some interface to make my searchs.
> >> Somebody knows where can I find some search interface just for
> >> customizations?
> >>
> >> Tks
> >
> >
>
>
>
> --
> Lance Norskog
> goks...@gmail.com
>



-- 
Claudio Devecchi
flickr.com/cdevecchi


Search Interface

2010-09-27 Thread Claudio Devecchi
Hi everybody,

I`m implementing my first solr engine for conceptual tests, I`m crawling my
wiki intranet to make some searches, the engine is working fine already, but
I need some interface to make my searchs.
Somebody knows where can I find some search interface just for
customizations?

Tks
-- 
Claudio Devecchi
flickr.com/cdevecchi


Re: Problems to clustering on tomcat

2010-08-19 Thread Claudio Devecchi
Tks so much Otis, It was very helpfull

On Tue, Aug 10, 2010 at 3:37 AM, Otis Gospodnetic <
otis_gospodne...@yahoo.com> wrote:

> Claudio,
>
> It sounds like the word "Cluster" there is adding confusion.
> ClusteringComponent has to do with search results clustering.  What you
> seem to
> be after is creation of a Solr cluster.
>
> You'll find good pointers here:
> http://search-lucene.com/?q=master+slave&fc_project=Solr&fc_type=wiki
>
> Perhaps this is the best place to start:
> http://wiki.apache.org/solr/SolrReplication
>
> Otis
> 
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> Lucene ecosystem search :: http://search-lucene.com/
>
>
>
> - Original Message 
> > From: Claudio Devecchi 
> > To: solr-user@lucene.apache.org
> > Sent: Mon, August 9, 2010 7:07:54 PM
> > Subject: Problems to clustering on tomcat
> >
> > Hi everybody,
> >
> > I need to do some tests in my solr instalation, previously  I configured
> my
> > application on a single node, and now I need to make some  tests on a
> cluster
> > configuration.
> > I followed the steps on "http://wiki.apache.org/solr/ClusteringComponent
> "
> > and when a startup the  example system everything is ok, but when I try
> to
> > run it on tomcat I receive  the error bellow, somebody have an idea?
> >
> > SEVERE: Could not start SOLR.  Check solr/home property
> > org.apache.solr.common.SolrException: Error loading  class
> > 'org.apache.solr.handler.clustering.ClusteringComponent'
> >
> > --
> > Claudio Devecchi
> > flickr.com/cdevecchi
> >
>



-- 
Claudio Devecchi
flickr.com/cdevecchi


Tomcat / Solr clustered

2010-08-13 Thread Claudio Devecchi
Hi,

Somebody could help me pls?

I'm trying to run the clustered solr over tomcat6, I followed the
instructions on wiki but not works, my doubt is... Is only follow that part
of solr instruction, or I have to configure something on tomcat?

Tks


Problems to clustering on tomcat

2010-08-09 Thread Claudio Devecchi
Hi everybody,

I need to do some tests in my solr instalation, previously I configured my
application on a single node, and now I need to make some tests on a cluster
configuration.
I followed the steps on "http://wiki.apache.org/solr/ClusteringComponent";
and when a startup the example system everything is ok, but when I try to
run it on tomcat I receive the error bellow, somebody have an idea?

SEVERE: Could not start SOLR. Check solr/home property
org.apache.solr.common.SolrException: Error loading class
'org.apache.solr.handler.clustering.ClusteringComponent'

-- 
Claudio Devecchi
flickr.com/cdevecchi


Re: Error indexing "date"

2010-08-03 Thread Claudio Devecchi
yep...

do you know how can I do with my schema to some fields dont be necessary?
because in some cases it will be null and sometimes not..


but very thanks, now indexed ok with no errors

tks

On Tue, Aug 3, 2010 at 8:05 PM, Chris Hostetter wrote:

> : The files are attached.
>
> From the files you sent...
>
>  
>
> ...as i said before...
>
> : > > > >>> According to that error message, you are attempting to index a
> date
> : > > > >>> field with a value that is an empty string,
> : > > > >>>
> : > > > >>> Ie...
> : > > > >>>
> : > > > >>> 
> : > > > >>>
> : > > > >>> ...or perhaps...
> : > > > >>>
> : > > > >>> 
> : > > > >>>
> : > > > >>> (xml makes no distinction)
>
>
> -Hoss
>
>


-- 
Claudio Devecchi
flickr.com/cdevecchi


Re: Error indexing "date"

2010-08-03 Thread Claudio Devecchi
Hi guys...

I already changed from : to . and nothing happens, the problem is the solr
ignores the content of the date, but if it is an incorrecty format, solr
shows this

tks

On Tue, Aug 3, 2010 at 5:05 PM, Walter Underwood wrote:

> That is because it is an illegal ISO 8601 datetime. The seconds portion
> should be "35.999", not "35:999".
>
> wunder
>
> On Aug 3, 2010, at 12:55 PM, Michael Griffiths wrote:
>
> > I'd guess the DIH is not extracting the date correctly.
> >
> > Either way, Solr is not retrieving the date.
> >
> > -Original Message-
> > From: Claudio Devecchi [mailto:cdevec...@gmail.com]
> > Sent: Tuesday, August 03, 2010 3:45 PM
> > To: solr-user@lucene.apache.org
> > Subject: Re: Error indexing "date"
> >
> > Somebody have an idea?
> >
> > My fields are not null and solr apparently thinks that they are
> >
> > On Tue, Aug 3, 2010 at 2:55 PM, Claudio Devecchi  >wrote:
> >
> >> My field is not empty, I have the date on the field and the error
> >> happens, the type to put on schema.xml is date? or have any other?
> >>
> >>
> >>
> >>
> >> On Tue, Aug 3, 2010 at 2:38 PM, Chris Hostetter <
> hossman_luc...@fucit.org>wrote:
> >>
> >>>
> >>> : On my xml file the date is on this format:*
> >>> 2010-07-31T13:37:35:999Z*
> >>>
> >>> : Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
> >>> : *SEVERE: org.apache.solr.common.SolrException: Invalid Date
> >>> String:''*
> >>>
> >>> According to that error message, you are attempting to index a date
> >>> field with a value that is an empty string,
> >>>
> >>> Ie...
> >>>
> >>> 
> >>>
> >>> ...or perhaps...
> >>>
> >>> 
> >>>
> >>> (xml makes no distinction)
> >>>
> >>>
> >>>
> >>> -Hoss
> >>>
> >>>
> >>
> >>
> >> --
> >> Claudio Devecchi
> >> flickr.com/cdevecchi
> >>
> >
> >
> >
> > --
> > Claudio Devecchi
> > flickr.com/cdevecchi
>
>
>
>
>


-- 
Claudio Devecchi
flickr.com/cdevecchi


Re: Error indexing "date"

2010-08-03 Thread Claudio Devecchi
Somebody have an idea?

My fields are not null and solr apparently thinks that they are

On Tue, Aug 3, 2010 at 2:55 PM, Claudio Devecchi wrote:

> My field is not empty, I have the date on the field and the error happens,
> the type to put on schema.xml is date? or have any other?
>
>
>
>
> On Tue, Aug 3, 2010 at 2:38 PM, Chris Hostetter 
> wrote:
>
>>
>> : On my xml file the date is on this format:* 2010-07-31T13:37:35:999Z*
>>
>> : Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
>> : *SEVERE: org.apache.solr.common.SolrException: Invalid Date String:''*
>>
>> According to that error message, you are attempting to index a date field
>> with a value that is an empty string,
>>
>> Ie...
>>
>> 
>>
>> ...or perhaps...
>>
>> 
>>
>> (xml makes no distinction)
>>
>>
>>
>> -Hoss
>>
>>
>
>
> --
> Claudio Devecchi
> flickr.com/cdevecchi
>



-- 
Claudio Devecchi
flickr.com/cdevecchi


Re: Error indexing "date"

2010-08-03 Thread Claudio Devecchi
My field is not empty, I have the date on the field and the error happens,
the type to put on schema.xml is date? or have any other?



On Tue, Aug 3, 2010 at 2:38 PM, Chris Hostetter wrote:

>
> : On my xml file the date is on this format:* 2010-07-31T13:37:35:999Z*
>
> : Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
> : *SEVERE: org.apache.solr.common.SolrException: Invalid Date String:''*
>
> According to that error message, you are attempting to index a date field
> with a value that is an empty string,
>
> Ie...
>
> 
>
> ...or perhaps...
>
> 
>
> (xml makes no distinction)
>
>
>
> -Hoss
>
>


-- 
Claudio Devecchi
flickr.com/cdevecchi


Re: Error indexing "date"

2010-08-03 Thread Claudio Devecchi
Hi Michael,

My xml have it:
2010-07-31T13:37:35.999Z

And in my schema.xml I have it:


Tks!

On Tue, Aug 3, 2010 at 12:19 PM, Michael Griffiths wrote:

> What's your XML data look like (for the data)?
>
> Looks like it's not the same date format Solr accepts.
>
> -Original Message-
> From: Claudio Devecchi [mailto:cdevec...@gmail.com]
> Sent: Tuesday, August 03, 2010 11:16 AM
> To: solr-user@lucene.apache.org
> Subject: Error indexing "date"
>
> Hi everybody,
>
> I'm having a error to index a xml file.
>
> I have configured my schema xml with all field names I needed, and created
> a xml with these fields, but in field wich I use some date I receive the
> following error:
> On my schema.xml the fields that I need date I configured it with *
> type="date"*
> On my xml file the date is on this format:* 2010-07-31T13:37:35:999Z*
>
> Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
> *SEVERE: org.apache.solr.common.SolrException: Invalid Date String:''*
>at org.apache.solr.schema.DateField.parseMath(DateField.java:163)
>at
> org.apache.solr.schema.TrieDateField.createField(TrieDateField.java:171)
>at
> org.apache.solr.schema.SchemaField.createField(SchemaField.java:94)
>at
> org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:246)
>at
>
> org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)
>at
> org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:139)
>at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
>at
>
> org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
>at
>
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
>at
>
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
>at
>
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
>at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
>at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>at java.lang.Thread.run(Thread.java:619)
>
> Somebody could help me?
>
> Tks!!
>
> --
> Claudio Devecchi
>



-- 
Claudio Devecchi
flickr.com/cdevecchi


Error indexing "date"

2010-08-03 Thread Claudio Devecchi
Hi everybody,

I'm having a error to index a xml file.

I have configured my schema xml with all field names I needed, and created a
xml with these fields, but in field wich I use some date I receive the
following error:
On my schema.xml the fields that I need date I configured it with *
type="date"*
On my xml file the date is on this format:* 2010-07-31T13:37:35:999Z*

Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
*SEVERE: org.apache.solr.common.SolrException: Invalid Date String:''*
at org.apache.solr.schema.DateField.parseMath(DateField.java:163)
at
org.apache.solr.schema.TrieDateField.createField(TrieDateField.java:171)
at
org.apache.solr.schema.SchemaField.createField(SchemaField.java:94)
at
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:246)
at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)
at
org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:139)
at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)

Somebody could help me?

Tks!!

-- 
Claudio Devecchi


Re: Problems running on tomcat

2010-08-02 Thread Claudio Devecchi
Hi Ahmet,

Works with tomcat6.

Tks!

On Mon, Aug 2, 2010 at 3:04 PM, Claudio Devecchi wrote:

> Hi Ahmet,
>
> I'm using tomcat7 with solr 1.4.1 =\
> If you worked fine on tomcat6 I'll try with the same version...
>
> Tks for helping..
>
>
> On Mon, Aug 2, 2010 at 2:30 PM, Ahmet Arslan  wrote:
>
>> What is version of solr and tomcat?
>>
>> I think i saw same problem with tomcat 7 and solr 1.4.1 combination, thats
>> why i am asking.
>>
>> I just tried to replicate this problem with tomcat 6 and solr 1.4.1, but
>> everything went fine.
>>
>> --- On Fri, 7/30/10, Claudio Devecchi  wrote:
>>
>> > From: Claudio Devecchi 
>> > Subject: Problems running on tomcat
>> > To: solr-user@lucene.apache.org
>> > Date: Friday, July 30, 2010, 10:17 PM
>> > Hi,
>> >
>> > I'm new with solr and I'm doing my first installation under
>> > tomcat, I
>> > followed the documentation on link (
>> > http://wiki.apache.org/solr/SolrTomcat#Installing_Tomcat_6)
>> > but there are
>> > some problems.
>> > The http://localhost:8080/solr/admin works
>> > fine, but in some cases, for
>> > example to see my schema.xml from the admin console the
>> > error bellow
>> > happensHTTP
>> > Status 404 - /solr/admin/file/index.jspSomebody already saw
>> > this? There are
>> > some trick to do?
>> >
>> > Tks
>> >
>> > --
>> > Claudio Devecchi
>> >
>>
>>
>>
>>
>
>
> --
> Claudio Devecchi
> flickr.com/cdevecchi
>



-- 
Claudio Devecchi
flickr.com/cdevecchi


Re: Problems running on tomcat

2010-08-02 Thread Claudio Devecchi
Hi Ahmet,

I'm using tomcat7 with solr 1.4.1 =\
If you worked fine on tomcat6 I'll try with the same version...

Tks for helping..

On Mon, Aug 2, 2010 at 2:30 PM, Ahmet Arslan  wrote:

> What is version of solr and tomcat?
>
> I think i saw same problem with tomcat 7 and solr 1.4.1 combination, thats
> why i am asking.
>
> I just tried to replicate this problem with tomcat 6 and solr 1.4.1, but
> everything went fine.
>
> --- On Fri, 7/30/10, Claudio Devecchi  wrote:
>
> > From: Claudio Devecchi 
> > Subject: Problems running on tomcat
> > To: solr-user@lucene.apache.org
> > Date: Friday, July 30, 2010, 10:17 PM
> > Hi,
> >
> > I'm new with solr and I'm doing my first installation under
> > tomcat, I
> > followed the documentation on link (
> > http://wiki.apache.org/solr/SolrTomcat#Installing_Tomcat_6)
> > but there are
> > some problems.
> > The http://localhost:8080/solr/admin works
> > fine, but in some cases, for
> > example to see my schema.xml from the admin console the
> > error bellow
> > happensHTTP
> > Status 404 - /solr/admin/file/index.jspSomebody already saw
> > this? There are
> > some trick to do?
> >
> > Tks
> >
> > --
> > Claudio Devecchi
> >
>
>
>
>


-- 
Claudio Devecchi
flickr.com/cdevecchi


Problems running on tomcat

2010-07-30 Thread Claudio Devecchi
Hi,

I'm new with solr and I'm doing my first installation under tomcat, I
followed the documentation on link (
http://wiki.apache.org/solr/SolrTomcat#Installing_Tomcat_6) but there are
some problems.
The http://localhost:8080/solr/admin works fine, but in some cases, for
example to see my schema.xml from the admin console the error bellow
happensHTTP
Status 404 - /solr/admin/file/index.jspSomebody already saw this? There are
some trick to do?

Tks

-- 
Claudio Devecchi