Re: I have a problem with the pagination with haystack and apache solr
usually in a folder called data as defined in the solrconfig.xml but I dont think looking in the data folder will help you. Ray On 23 Apr, 18:32, Arielwrote: > Where does the apache solr save the index ??? > > > > > > On Fri, Apr 23, 2010 at 1:23 PM, Ariel wrote: > > What I do here in search_indexes.py is this: > > > from haystack import site > > from atl_cms.content_type.models import News, Document > > > site.register(News) > > site.register(Document) > > > On Fri, Apr 23, 2010 at 4:18 AM, Ray McBride wrote: > > >> You should have defined the fields yourself in you search_indexes.py > >> file in your app > > >>http://docs.haystacksearch.org/dev/searchindex_api.html#quick-start > > >> Solr knows about these because you copy your generated schema.xml file > >> into the conf folder > > >> Ray > > >> On Apr 22, 6:46 pm, Ariel wrote: > >> > I don't know how to know that because I don't know the name of the > >> fields in > >> > the index. > >> > How could I know it ??? > >> > Regards > >> > Ariel > > >> > On Wed, Apr 21, 2010 at 4:40 AM, Ray McBride > >> wrote: > >> > > How many results are returned when you search using the solr admin > >> > > interface? > > >> > > Are you using the code that I posted for you previously? > > >> > > Ray > > >> > > On Apr 19, 6:29 pm, Ariel wrote: > >> > > > Hi everybody: > >> > > > I have a big problem with pagination using apache solr and haystack, > >> this > >> > > is > >> > > > what it is happening: I have a site where the news are being > >> indexing > >> > > with > >> > > > haystack and solr, but the problem is that when a I make the search > >> the > >> > > > pagination is showing me more match results that what really exists > >> even > >> > > > more results that total news in my database, for example I have only > >> 20 > >> > > news > >> > > > in the database but when I make a search the pagination said 40 > >> matching > >> > > > results are found then when I navigate with the "next" link to see > >> the > >> > > other > >> > > > results any result is showed. > > >> > > > I hope I have made a good explanation of my problem. > >> > > > Could you help me please ??? > >> > > > I don't know why it is happening that > >> > > > Regards. > >> > > > Ariel > > >> > > > -- > >> > > > You received this message because you are subscribed to the Google > >> Groups > >> > > "Django users" group. > >> > > > To post to this group, send email to django-us...@googlegroups.com. > >> > > > To unsubscribe from this group, send email to > >> > > django-users+unsubscr...@googlegroups.com >> > > groups.com> > >> > >> > > . > >> > > > For more options, visit this group athttp:// > >> > > groups.google.com/group/django-users?hl=en. > > >> > > -- > >> > > You received this message because you are subscribed to the Google > >> Groups > >> > > "Django users" group. > >> > > To post to this group, send email to django-us...@googlegroups.com. > >> > > To unsubscribe from this group, send email to > >> > > django-users+unsubscr...@googlegroups.com >> > > groups.com> > >> > >> > > . > >> > > For more options, visit this group at > >> > >http://groups.google.com/group/django-users?hl=en. > > >> > -- > >> > You received this message because you are subscribed to the Google > >> Groups "Django users" group. > >> > To post to this group, send email to django-us...@googlegroups.com. > >> > To unsubscribe from this group, send email to > >> django-users+unsubscr...@googlegroups.com >> groups.com> > >> . > >> > For more options, visit this group athttp:// > >> groups.google.com/group/django-users?hl=en. > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Django users" group. > >> To post to this group, send email to django-us...@googlegroups.com. > >> To unsubscribe from this group, send email to > >> django-users+unsubscr...@googlegroups.com >> groups.com> > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more
Re: I have a problem with the pagination with haystack and apache solr
You have no SearchIndex class. see the quick start guide in the link I sent you R On 23 Apr, 18:23, Arielwrote: > What I do here in search_indexes.py is this: > > from haystack import site > from atl_cms.content_type.models import News, Document > > site.register(News) > site.register(Document) > > > > > > On Fri, Apr 23, 2010 at 4:18 AM, Ray McBride wrote: > > You should have defined the fields yourself in you search_indexes.py > > file in your app > > >http://docs.haystacksearch.org/dev/searchindex_api.html#quick-start > > > Solr knows about these because you copy your generated schema.xml file > > into the conf folder > > > Ray > > > On Apr 22, 6:46 pm, Ariel wrote: > > > I don't know how to know that because I don't know the name of the fields > > in > > > the index. > > > How could I know it ??? > > > Regards > > > Ariel > > > > On Wed, Apr 21, 2010 at 4:40 AM, Ray McBride > > wrote: > > > > How many results are returned when you search using the solr admin > > > > interface? > > > > > Are you using the code that I posted for you previously? > > > > > Ray > > > > > On Apr 19, 6:29 pm, Ariel wrote: > > > > > Hi everybody: > > > > > I have a big problem with pagination using apache solr and haystack, > > this > > > > is > > > > > what it is happening: I have a site where the news are being indexing > > > > with > > > > > haystack and solr, but the problem is that when a I make the search > > the > > > > > pagination is showing me more match results that what really exists > > even > > > > > more results that total news in my database, for example I have only > > 20 > > > > news > > > > > in the database but when I make a search the pagination said 40 > > matching > > > > > results are found then when I navigate with the "next" link to see > > the > > > > other > > > > > results any result is showed. > > > > > > I hope I have made a good explanation of my problem. > > > > > Could you help me please ??? > > > > > I don't know why it is happening that > > > > > Regards. > > > > > Ariel > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Django users" group. > > > > > To post to this group, send email to django-us...@googlegroups.com. > > > > > To unsubscribe from this group, send email to > > > > django-users+unsubscr...@googlegroups.com > > > groups.com> > > > > > > . > > > > > For more options, visit this group athttp:// > > > > groups.google.com/group/django-users?hl=en. > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Django users" group. > > > > To post to this group, send email to django-us...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > django-users+unsubscr...@googlegroups.com > > > groups.com> > > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/django-users?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > > To post to this group, send email to django-us...@googlegroups.com. > > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com > groups.com> > > . > > > For more options, visit this group athttp:// > > groups.google.com/group/django-users?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com > groups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: I have a problem with the pagination with haystack and apache solr
Where does the apache solr save the index ??? On Fri, Apr 23, 2010 at 1:23 PM, Arielwrote: > What I do here in search_indexes.py is this: > > from haystack import site > from atl_cms.content_type.models import News, Document > > site.register(News) > site.register(Document) > > > > > > On Fri, Apr 23, 2010 at 4:18 AM, Ray McBride wrote: > >> You should have defined the fields yourself in you search_indexes.py >> file in your app >> >> http://docs.haystacksearch.org/dev/searchindex_api.html#quick-start >> >> Solr knows about these because you copy your generated schema.xml file >> into the conf folder >> >> Ray >> >> On Apr 22, 6:46 pm, Ariel wrote: >> > I don't know how to know that because I don't know the name of the >> fields in >> > the index. >> > How could I know it ??? >> > Regards >> > Ariel >> > >> > >> > >> > >> > >> > On Wed, Apr 21, 2010 at 4:40 AM, Ray McBride >> wrote: >> > > How many results are returned when you search using the solr admin >> > > interface? >> > >> > > Are you using the code that I posted for you previously? >> > >> > > Ray >> > >> > > On Apr 19, 6:29 pm, Ariel wrote: >> > > > Hi everybody: >> > > > I have a big problem with pagination using apache solr and haystack, >> this >> > > is >> > > > what it is happening: I have a site where the news are being >> indexing >> > > with >> > > > haystack and solr, but the problem is that when a I make the search >> the >> > > > pagination is showing me more match results that what really exists >> even >> > > > more results that total news in my database, for example I have only >> 20 >> > > news >> > > > in the database but when I make a search the pagination said 40 >> matching >> > > > results are found then when I navigate with the "next" link to see >> the >> > > other >> > > > results any result is showed. >> > >> > > > I hope I have made a good explanation of my problem. >> > > > Could you help me please ??? >> > > > I don't know why it is happening that >> > > > Regards. >> > > > Ariel >> > >> > > > -- >> > > > You received this message because you are subscribed to the Google >> Groups >> > > "Django users" group. >> > > > To post to this group, send email to django-us...@googlegroups.com. >> > > > To unsubscribe from this group, send email to >> > > django-users+unsubscr...@googlegroups.com >> >> > > . >> > > > For more options, visit this group athttp:// >> > > groups.google.com/group/django-users?hl=en. >> > >> > > -- >> > > You received this message because you are subscribed to the Google >> Groups >> > > "Django users" group. >> > > To post to this group, send email to django-us...@googlegroups.com. >> > > To unsubscribe from this group, send email to >> > > django-users+unsubscr...@googlegroups.com >> >> > > . >> > > For more options, visit this group at >> > >http://groups.google.com/group/django-users?hl=en. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Django users" group. >> > To post to this group, send email to django-us...@googlegroups.com. >> > To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com >> . >> > For more options, visit this group athttp:// >> groups.google.com/group/django-users?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com >> . >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: I have a problem with the pagination with haystack and apache solr
What I do here in search_indexes.py is this: from haystack import site from atl_cms.content_type.models import News, Document site.register(News) site.register(Document) On Fri, Apr 23, 2010 at 4:18 AM, Ray McBridewrote: > You should have defined the fields yourself in you search_indexes.py > file in your app > > http://docs.haystacksearch.org/dev/searchindex_api.html#quick-start > > Solr knows about these because you copy your generated schema.xml file > into the conf folder > > Ray > > On Apr 22, 6:46 pm, Ariel wrote: > > I don't know how to know that because I don't know the name of the fields > in > > the index. > > How could I know it ??? > > Regards > > Ariel > > > > > > > > > > > > On Wed, Apr 21, 2010 at 4:40 AM, Ray McBride > wrote: > > > How many results are returned when you search using the solr admin > > > interface? > > > > > Are you using the code that I posted for you previously? > > > > > Ray > > > > > On Apr 19, 6:29 pm, Ariel wrote: > > > > Hi everybody: > > > > I have a big problem with pagination using apache solr and haystack, > this > > > is > > > > what it is happening: I have a site where the news are being indexing > > > with > > > > haystack and solr, but the problem is that when a I make the search > the > > > > pagination is showing me more match results that what really exists > even > > > > more results that total news in my database, for example I have only > 20 > > > news > > > > in the database but when I make a search the pagination said 40 > matching > > > > results are found then when I navigate with the "next" link to see > the > > > other > > > > results any result is showed. > > > > > > I hope I have made a good explanation of my problem. > > > > Could you help me please ??? > > > > I don't know why it is happening that > > > > Regards. > > > > Ariel > > > > > > -- > > > > You received this message because you are subscribed to the Google > Groups > > > "Django users" group. > > > > To post to this group, send email to django-us...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > django-users+unsubscr...@googlegroups.com > > > > . > > > > For more options, visit this group athttp:// > > > groups.google.com/group/django-users?hl=en. > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Django users" group. > > > To post to this group, send email to django-us...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > django-users+unsubscr...@googlegroups.com > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/django-users?hl=en. > > > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > > For more options, visit this group athttp:// > groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: I have a problem with the pagination with haystack and apache solr
You should have defined the fields yourself in you search_indexes.py file in your app http://docs.haystacksearch.org/dev/searchindex_api.html#quick-start Solr knows about these because you copy your generated schema.xml file into the conf folder Ray On Apr 22, 6:46 pm, Arielwrote: > I don't know how to know that because I don't know the name of the fields in > the index. > How could I know it ??? > Regards > Ariel > > > > > > On Wed, Apr 21, 2010 at 4:40 AM, Ray McBride wrote: > > How many results are returned when you search using the solr admin > > interface? > > > Are you using the code that I posted for you previously? > > > Ray > > > On Apr 19, 6:29 pm, Ariel wrote: > > > Hi everybody: > > > I have a big problem with pagination using apache solr and haystack, this > > is > > > what it is happening: I have a site where the news are being indexing > > with > > > haystack and solr, but the problem is that when a I make the search the > > > pagination is showing me more match results that what really exists even > > > more results that total news in my database, for example I have only 20 > > news > > > in the database but when I make a search the pagination said 40 matching > > > results are found then when I navigate with the "next" link to see the > > other > > > results any result is showed. > > > > I hope I have made a good explanation of my problem. > > > Could you help me please ??? > > > I don't know why it is happening that > > > Regards. > > > Ariel > > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > > To post to this group, send email to django-us...@googlegroups.com. > > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com > groups.com> > > . > > > For more options, visit this group athttp:// > > groups.google.com/group/django-users?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com > groups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: I have a problem with the pagination with haystack and apache solr
I don't know how to know that because I don't know the name of the fields in the index. How could I know it ??? Regards Ariel On Wed, Apr 21, 2010 at 4:40 AM, Ray McBridewrote: > How many results are returned when you search using the solr admin > interface? > > Are you using the code that I posted for you previously? > > Ray > > On Apr 19, 6:29 pm, Ariel wrote: > > Hi everybody: > > I have a big problem with pagination using apache solr and haystack, this > is > > what it is happening: I have a site where the news are being indexing > with > > haystack and solr, but the problem is that when a I make the search the > > pagination is showing me more match results that what really exists even > > more results that total news in my database, for example I have only 20 > news > > in the database but when I make a search the pagination said 40 matching > > results are found then when I navigate with the "next" link to see the > other > > results any result is showed. > > > > I hope I have made a good explanation of my problem. > > Could you help me please ??? > > I don't know why it is happening that > > Regards. > > Ariel > > > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > > For more options, visit this group athttp:// > groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: I have a problem with the pagination with haystack and apache solr
How many results are returned when you search using the solr admin interface? Are you using the code that I posted for you previously? Ray On Apr 19, 6:29 pm, Arielwrote: > Hi everybody: > I have a big problem with pagination using apache solr and haystack, this is > what it is happening: I have a site where the news are being indexing with > haystack and solr, but the problem is that when a I make the search the > pagination is showing me more match results that what really exists even > more results that total news in my database, for example I have only 20 news > in the database but when I make a search the pagination said 40 matching > results are found then when I navigate with the "next" link to see the other > results any result is showed. > > I hope I have made a good explanation of my problem. > Could you help me please ??? > I don't know why it is happening that > Regards. > Ariel > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: I have a problem with the pagination with haystack and apache solr
What happens if you switch pagination off? On Mon, Apr 19, 2010 at 19:29, Arielwrote: > Hi everybody: > I have a big problem with pagination using apache solr and haystack, this is > what it is happening: I have a site where the news are being indexing with > haystack and solr, but the problem is that when a I make the search the > pagination is showing me more match results that what really exists even > more results that total news in my database, for example I have only 20 news > in the database but when I make a search the pagination said 40 matching > results are found then when I navigate with the "next" link to see the other > results any result is showed. > > I hope I have made a good explanation of my problem. > Could you help me please ??? > I don't know why it is happening that > Regards. > Ariel -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.